DSUM Multiple Criteria

Falcon88

Registered User.
Local time
Today, 10:19
Joined
Nov 4, 2014
Messages
309
i have a textbox in a form that must contains Dsum with Numberic and Date Criteria.

Values to sum: SumTotal
Query name: Q105
Criteria1:"[EmpID]=" & [EmpID] ( numberic )
Criteria2: " [OrderDate] <=" & [OrderDate]

How would I do this? I have been trying for a while, I would love some help
 
i have a textbox in a form that must contains Dsum with Numberic and Date Criteria.

Values to sum: SumTotal
Query name: Q105
Criteria1:"[EmpID]=" & [EmpID] ( numberic )
Criteria2: " [OrderDate] <=" & [OrderDate]

How would I do this? I have been trying for a while, I would love some help
Code:
= DSum("{name of field}", "{name of table}", "[EmpID] = " & [EmpID] & " AND [OrderDate] <= #" & [OrderDate] & "#")
 
ok,
but that give me some wrong results .
What about the region default settings in Windows?
if my default settings : dd/MM/yyyy
 

Users who are viewing this thread

Back
Top Bottom