Good Afternoon,
I’m struggling to find out what is wrong with my SQL syntax ( ). Can someone help find my error?
[codebox]
dCLD = DMax(“LoadDate”, “tbLoadDate”)
strData = “SELECT tbl_CompleteList.fkUserID ” & _
“FROM tbl_CompleteList ” & _
“WHERE (tbl_CompleteList.fkUserID Is Null AND tbl_CompleteList.nClosed=0 AND (tbl_CompleteList.Load_Date < dcld));"[/codebox]
I've also tried:
[codebox]
strData = "SELECT tbl_CompleteList.fkUserID " & _
"FROM tbl_CompleteList " & _
"WHERE (((tbl_CompleteList.fkUserID) Is Null) AND ((tbl_CompleteList.nClosed)=0) AND ((tbl_CompleteList.Load_Date) < dcld));"[/codebox]
When I run either one, the dreaded "Run Time-Erro 3061: Too few parameters. Expected 1", error message is returned.
I appreciate any help.