Try this kind of thing:
=DCount("*", "Table1", "[MyDateField] Between #1/1/2005# And
#12/31/2005#")
If the dates are in text boxes:
=DCount("*", "Table1", "[MyDateField] Between " &
Format([StartDate], "\#mm\/dd\/yyyy\#") & " And " &
Format([EndDate], "\#mm\/dd\/yyyy\#"))
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Lakenheath said:
I need to count records with-in a date range. How would I set up the
control
source? Thanks in Advance for your assistance.