S
S Jackson
I have such trouble with this! Everytime! Ack! I am trying to open another
form from a list box on the Double Click event. Here is part of the code:
strSQL = "SELECT * " _
& "FROM tblSurveyors " _
& "WHERE tblSurveyors.SurveyorID = " & Me.lbxEmployees.Value
I keep getting a syntax error. I put in the Msgbox strSQL and the statement
reads like this:
SELECT * FROM tblSurveyors WHERE tblSurveyors.SurveyorID = 1
Looks fine to me. But Access doesn't seem to like it. What am I doing
wrong here?
TIA
form from a list box on the Double Click event. Here is part of the code:
strSQL = "SELECT * " _
& "FROM tblSurveyors " _
& "WHERE tblSurveyors.SurveyorID = " & Me.lbxEmployees.Value
I keep getting a syntax error. I put in the Msgbox strSQL and the statement
reads like this:
SELECT * FROM tblSurveyors WHERE tblSurveyors.SurveyorID = 1
Looks fine to me. But Access doesn't seem to like it. What am I doing
wrong here?
TIA