I have a form which opens a report and displays all schools that have a date field filled with dates between dates on unbound text boxes on a form.
I also have a dcount which should pull the same results as the report and count them
=DCount("NewSchoolsID","tblSchools",Not IsNull([CatalogueLabelPrinted]) And "CatalogueLabelPrinted >= #" & [BeforeDate] & "# and <= #" & [AfterDate] & "#")
I tried "between" but that didn't work for dates between current/picked same date and current/picked same date
I get 0 instead of the count that the report has made so I tried >= but I get too many results.
The idea is that the field has to be not null and within the date period on the form. Any suggestions?