BrucesAccessWorldFor
New member
- Local time
- Yesterday, 19:43
- Joined
- Aug 28, 2012
- Messages
- 3
We are using a Access Database at work that records our customers as they register to use our facilities. I am using a query to pull information from a table to use to count (using DCount) the number of from branch field and rank field. It works fine embedded in the report form. But as soon as I put a between command in the query to select a date range I get a #Error in the calculated field. The dcount criteria field is as follows: =DCount("*","Records_by_date_qry","[Records_by_date_qry]![Branch]='USMC' AND [Records_by_date_qry]![Rank]='E1'"). In the records by date qry I have this in the critera for Date: Between [Enter Start Date] And [Enter End Date]. Like I said when I take the between out of the query it adds the fields correctly, but when it's in I get the #Error. Thanks for your help.