Hi all,
I have the following code:
In the first line it comes back with type mismatch error.
Is there a quick reason for this?
Notes:
absent is a table name
Start_Date is a field name
I think the error is with the bit that goes:
And [Start_Date] > ((DateAdd("m", -12, Date)))
Cheers
I have the following code:
Code:
LTotal3 = DCount("[Name]", "absent", "[Name] = " & Chr(34) & Combo136.Value & Chr(34) & " And [absentcode]='countme'" And [Start_Date] > ((DateAdd("m", -12, Date))))
LTotal4 = DSum("[Days]", "absent", "[Name] = " & Chr(34) & Combo136.Value & Chr(34) & " And [absentcode]='countme'" And ((DateAdd("m", -12, Date)) < [Start_Date]))
In the first line it comes back with type mismatch error.
Is there a quick reason for this?
Notes:
absent is a table name
Start_Date is a field name
I think the error is with the bit that goes:
And [Start_Date] > ((DateAdd("m", -12, Date)))
Cheers