R
redFred
I wish to use DCount to count records whose RFDate is between two dates
provided by a selector form. My control source follows:
=DCount("[RFDate]","[tbl 2 Job]","[RFDate] = & "Between
#"&[Forms]![9frmSelectorDate]![txtStartDate]&"# And
#"&[Forms]![9frmSelectorDate]![txtEndDate]&"#")
Is this code correct? I cannot find an example of DCount using Between in
the select criteria, but have cobbled this together. I am afraid I don't
understand it enough or else my hammer just isn't big enough.
Assuming code is not right, what is correct code and what does it mean?
Thanks,
provided by a selector form. My control source follows:
=DCount("[RFDate]","[tbl 2 Job]","[RFDate] = & "Between
#"&[Forms]![9frmSelectorDate]![txtStartDate]&"# And
#"&[Forms]![9frmSelectorDate]![txtEndDate]&"#")
Is this code correct? I cannot find an example of DCount using Between in
the select criteria, but have cobbled this together. I am afraid I don't
understand it enough or else my hammer just isn't big enough.
Assuming code is not right, what is correct code and what does it mean?
Thanks,