I'm having problems with Dcount when used in report group footer. Report is based on query and grouped by 'Location' dislayed by txtLocation control. I need to use DCount to bring up the total number in the group location but from tblMain and not the query that report is using. How do you reference the txtLocation control as criteria in DCount. How to DCount using this:
=DCount("Location]", "tblMain", use the value in report txtLocation)
using =DCount("[Location]","tblMain","Location") brings up total for all group records. I just need it to show the number for whatever is displayed in txtLocation group.
Your help is greatly appreciated.
=DCount("Location]", "tblMain", use the value in report txtLocation)
using =DCount("[Location]","tblMain","Location") brings up total for all group records. I just need it to show the number for whatever is displayed in txtLocation group.
Your help is greatly appreciated.