G
Guest
I have a report that lists dues invoices and payments based on a query that
I'm trying to add a DSum function to at the end of the report.
The report has the following filter on it:
([Total_Amount_Paid] > 0 AND [Date_Paid] Between [Enter starting date:] AND
[Enter ending date:])
When the user opens the report, they're prompted to enter the starting and
ending date they want to view.
The DSum field in question is found in the Report Footer. The field formula
is:
=DSum("[Total_Amount_Paid]","[qryDuesInvoiceInd]","[Payment_Method] = 'Ck'")
Basically it is supposed to total the [Total_Amount_Paid] field for every
record with "Ck" in the [Payment_Method] field. The problem is that it gives
me the complete total from [qryDuesInvoiceInd] -- I want it to give me the
total with the filter applied. Because the filter requires a user input
value, I can't figure out how to pass that info. along to the DSum function,
or make the DSum function only look at my report data (instead of the full
query data).
Thanks.
I'm trying to add a DSum function to at the end of the report.
The report has the following filter on it:
([Total_Amount_Paid] > 0 AND [Date_Paid] Between [Enter starting date:] AND
[Enter ending date:])
When the user opens the report, they're prompted to enter the starting and
ending date they want to view.
The DSum field in question is found in the Report Footer. The field formula
is:
=DSum("[Total_Amount_Paid]","[qryDuesInvoiceInd]","[Payment_Method] = 'Ck'")
Basically it is supposed to total the [Total_Amount_Paid] field for every
record with "Ck" in the [Payment_Method] field. The problem is that it gives
me the complete total from [qryDuesInvoiceInd] -- I want it to give me the
total with the filter applied. Because the filter requires a user input
value, I can't figure out how to pass that info. along to the DSum function,
or make the DSum function only look at my report data (instead of the full
query data).
Thanks.