Hi,
I have a form setup (Journal Header) with a subform (Journal Lines), and I am trying to apply a filter to the form via a macro, to only show records where the Journal Amount from the Header doesn't equal the sum of the Journal Line amounts.
I have a query that summarizes the header and line amounts and shows the difference (most are zero), I then built a query with all fields from the form and joined it to the first query by the Key, so that only the rows that have a difference show up. However when I apply this query to the form as a filter (in a Macro), I am still seeing ALL the records without any filtering.
Am I doing something wrong here, or is there a better way to accomplish this? I have also tried adding a field for the difference to the form, but always end up with an #ERROR or ?NAME rather than the actual difference.
I want the same form to be usable for different purposes, but to do that I need to be able to apply filters to the form for specific purposes (like filling out the journal lines that are missing - which would be the lines where the sum of the line amounts doesn't = the header amount).
Any help would be greatly appreciated.
I have a form setup (Journal Header) with a subform (Journal Lines), and I am trying to apply a filter to the form via a macro, to only show records where the Journal Amount from the Header doesn't equal the sum of the Journal Line amounts.
I have a query that summarizes the header and line amounts and shows the difference (most are zero), I then built a query with all fields from the form and joined it to the first query by the Key, so that only the rows that have a difference show up. However when I apply this query to the form as a filter (in a Macro), I am still seeing ALL the records without any filtering.
Am I doing something wrong here, or is there a better way to accomplish this? I have also tried adding a field for the difference to the form, but always end up with an #ERROR or ?NAME rather than the actual difference.
I want the same form to be usable for different purposes, but to do that I need to be able to apply filters to the form for specific purposes (like filling out the journal lines that are missing - which would be the lines where the sum of the line amounts doesn't = the header amount).
Any help would be greatly appreciated.