Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting in Reports

Status
Not open for further replies.

Garridon

Programmer
Mar 2, 2000
718
US
I have a report which will report on information for the last three months, counting the total number of records for that month and one that counts the total number overdue for that month.

If I use DCount to count the overdue records, I have to run it off the query, which works fine, except it gives me the total for all three months, not subtotaling for one month. If I try to run DCount off the report, it just gives me a #Error. This is what I'm using:

DCount("[Days Elapsed]","qselTrends","[Days Elapsed]>'0'")

Is there another way to do this?

Thanks!

Linda Adams
Visit my web site for writing and Microsoft Word tips: Official web site for actor David Hedison:
 
Probably best to use the datepart function and then sort or test as necessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top