DSUM report

mveijndh

Registered User.
Local time
Today, 15:27
Joined
Dec 17, 2011
Messages
113
I'm trying to generate a total sum in Invoice report. It does not seem to collect the right data. Can I use multiple Criteria in a Dsum?

Code:
TotalExpenses: DSum("[tblExpenses]![ExpDeclarationValue]";"queInvoiceExpenses";"Month( [tblExpenses]![ExpDate] =1) And [tblExpenses]![EmployeeID] =1")

Thanks in advance
 
You have incorrect number of opening and closing brackets, and some in wrong place as well. try:

Code:
TotalExpenses: DSum("[tblExpenses]![ExpDeclarationValue]";"queInvoiceExpenses";"Month([tblExpenses]![ExpDate])=1 And [tblExpenses]![EmployeeID]=1")
 
Hi,

This does provide better results, but it does not line up with the checked results. Is there a way to check what records the DSUM has used?
 
Hi,

I've changed the DSUM to:

Code:
TotalExpenses: DSum("[queExpensesOpen]![ExpDeclarationValue]";"queExpensesOpen")

Found the issue!
 
Last edited:

Users who are viewing this thread

Back
Top Bottom