P
pmacdiddie
I have this line of code where I cant get the syntax quite right. Can
anyone offer a fix?
sSQL = "SELECT Job_Num, Salesman FROM tblJobs WHERE Salesman = " _
& '" & recGroups.Fields("EMP_ID").Value & "' & " ORDER
BY Salesman Asc"
The debugger highlighs the first ' on the second row. I have tried
many variations. The value of EMP_ID is string.
Thanks so much.
Preston
anyone offer a fix?
sSQL = "SELECT Job_Num, Salesman FROM tblJobs WHERE Salesman = " _
& '" & recGroups.Fields("EMP_ID").Value & "' & " ORDER
BY Salesman Asc"
The debugger highlighs the first ' on the second row. I have tried
many variations. The value of EMP_ID is string.
Thanks so much.
Preston