Hello,
I have a statement written and getting problem in working when I changed the Field "EmpID" from number to Text.
Can anyone suggest the solution?
I have a statement written and getting problem in working when I changed the Field "EmpID" from number to Text.
Code:
strSql = "SELECT *, Format(Date(),'yyyy')-Format([DoB],'yyyy') AS Age FROM tblRecallSheetStatus WHERE EmpID=" & emp_no & " ;"
Set qdf = CurrentDb.QueryDefs("qrySearchRecordForReport")
qdf.SQL = strSql
Can anyone suggest the solution?