I've attached a "database" which illustrates the problem I'm having. I'm trying to count the number of records containing a particular date. The Dcount appears to count some dates but ignores others. For example, if I ask it to count records containing the date 14/10/2010 it works, but if I ask it to count those with the date 04/06/2010 it returns zero.
A query finds the records OK but still Dcount won't, even when the query is used as the data source. I've spent more than 2 days solid trying to make this work and am now desperate.
The syntax I've used for Dcount is:
DCount("*", "tblTest","ECDate = #04/06/10#") but I've messed about with lots of variations of the syntax.
This must be something simple - I can't believe Access will accept some dates but ignore others. I've "hard coded" the dates into the DCount function for testing but in the database I'm developing the dates are passed to the function via parameters.
I'll be enormously grateful if someone can shed some light on this for me.
Many thanks,
Jules