You were close. Dates should be delimited by # characters instead of "
characters in Access. So try the following expression.
Dcount("*","Tablename","tdate>#2008-12-31# and tdate<#2009-02-01#")
The trick will be to make those dates dynamic. That might be possible
depending on your reports source. Or perhaps you can use this little trick if
you are displaying the date in the report.
Dcount("*","Tablename","tdate>=" & Format(Min(TDate),"\#yyyy-mm-dd\#") & " and
tdate<= " & Format(Max(TDate),"\#yyyy-mm-dd\#"))
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County