Correction, I missed an &
The prior is for integer values only. If it is a string variable then
strSQL = "SELECT * FROM Detfact WHERE Folio =" & " " & "'" & fol & "'"
Set RS = DB.OpenRecordset( strSQL, dbOpenDynaset)
|
Results 1 to 10 of 10
Thread: SQL search with integer variableThreaded View
|
Click Here to Expand Forum to Full Width |