Below are two expressions that I am using to get totals of records in two fields on my query. They work just fine.
Total Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[ClockNbr]<>'*'")
Primary Verified: DCount("[WorkerNameLast]","1-StationVerifyTbl","[StaPrimary]=True")
These give totals of records from a table.
What I want to do now is limit these totals to a date range such as
">7/1/05 and <7/31/05"
I have added the Date field to the query and it will only show me the records for those dates but the totals from the two expressions above always show me the totals for the whole table. How can I restrict the two expressions to only giving me totals for a date range?
All help is appreciated.
Total Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[ClockNbr]<>'*'")
Primary Verified: DCount("[WorkerNameLast]","1-StationVerifyTbl","[StaPrimary]=True")
These give totals of records from a table.
What I want to do now is limit these totals to a date range such as
">7/1/05 and <7/31/05"
I have added the Date field to the query and it will only show me the records for those dates but the totals from the two expressions above always show me the totals for the whole table. How can I restrict the two expressions to only giving me totals for a date range?
All help is appreciated.