Hello All,
I've looked at the DLookup Usage Samples on Access Web but am unable to apply it to my needs.
I keep getting wrong number of arguments...
I am trying to count the number of days OFF for a particular pilot between two dates (payroll dates).
Here is what I've got so far, I think I'm close but cannot get over the hump.
I've looked at the DLookup Usage Samples on Access Web but am unable to apply it to my needs.
I keep getting wrong number of arguments...
I am trying to count the number of days OFF for a particular pilot between two dates (payroll dates).
Here is what I've got so far, I think I'm close but cannot get over the hump.
Code:
DaysOffCount = DCount("[tbl_Entry.Pilot]", "tbl_Entry", "[Pilot] = '" & strPilot & "'" _
And [tbl_Entry.Daily_Status], "tbl_Entry", _
"[Daily_Status] = '" & strOff & _
"' and [tbl_Entry.flt_Date] between #" & [Forms]![frm_Entry]![txtStart] & "# and #" & [Forms]![frm_Entry]![txtEnd] & "#")