strGetFireSafety = "Select * from tblCompetencyData where txtLogin =" & Chr(34) & rsGetName!txtLogin & Chr(34) _
& "and txtProcedureNo = 'MAN-001'" _
& "and datediff('yyyy', nbtInputBox, nbtEvalDate) = 0"
Set rsGetFireSafety = db.OpenRecordset(strGetFireSafety)
In the above code,I keep getting the error "Too few parameters, expected one". It seems that it is not recognizing the value(date) in the field nbtEvalDate. nbtInputBox is an input box whose value(date) is being recognized. Can someone help me correct this please.
Thanks
& "and txtProcedureNo = 'MAN-001'" _
& "and datediff('yyyy', nbtInputBox, nbtEvalDate) = 0"
Set rsGetFireSafety = db.OpenRecordset(strGetFireSafety)
In the above code,I keep getting the error "Too few parameters, expected one". It seems that it is not recognizing the value(date) in the field nbtEvalDate. nbtInputBox is an input box whose value(date) is being recognized. Can someone help me correct this please.
Thanks