If Payperiod is a true date/Time field then use DateSerial() function to make a startdate
=DCount("*", "PayrollQuery", "Sex='Male' AND Payperiod between #" & DateSerial([Forms]![LCR]![cboyear],[Forms]![LCR]![cbomonth],1) & "# AND #" & ([Forms]![lcr]![txtdate2]) & "#")
changes marked in red
JR