I have a db and my Payroll Module is giving me some problems. Here is the Module Code:
Function Fica()
Fica = DLookup("FicaMul", "TFica", "FicaMulDate = #" & DMax("FicaMulDate", "TFica", "FicaMulDate <=DteEnd()") & "#")
Fica_Exit:
Exit Function
Fica_Error:
MsgBox "Unexpected error - " & err.Number & vbCrLf & vbCrLf & Error$, vbExclamation, "Function Fica()"
Resume Fica_Exit
End Function
The error message I get when I try to run my queries is; ' Syntax Error in Query QSaleComTotWkA, expression 'FicaMulDate = # #'.
' Reserved error 0