R
Robert Airton
I wonder if anybody can sort out this error for me.
I has someone write a little asp program for me but it sometimes gives the
error
Syntax error (missing operator) in query expression 'ID ='.
I am not technical and know nothing of ASP.
However it appears that it is in the first line of the following section:
strSQL = "SELECT * from vocabulary where ID = " & Session("ID")
'strDB="DBQ=" & Server.Mappath("db\dictionary.mdb") & ";Driver={Microsoft
Access Driver (*.mdb)};"
strDB = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.Mappath("db\dictionary.mdb") & ";" & _
"Persist Security Info = False"
Set DataConn = Server.CreateObject("ADODB.Connection")
Set RecordsetListUpd = Server.CreateObject("ADODB.recordset")
DataConn.Open strDB
RecordsetListUpd.Open strSQL,DataConn,3,3,adCmdText
RecordsetListUpd.Fields("Tested") = Session("WTested")
RecordsetListUpd.Fields("Correct") = Session("WCorrect")
Is there a " or something missing?
I have searched the web and FAQs for strSQL and found nothing.
Any hep appreciated.
Robert
Robert
I has someone write a little asp program for me but it sometimes gives the
error
Syntax error (missing operator) in query expression 'ID ='.
I am not technical and know nothing of ASP.
However it appears that it is in the first line of the following section:
strSQL = "SELECT * from vocabulary where ID = " & Session("ID")
'strDB="DBQ=" & Server.Mappath("db\dictionary.mdb") & ";Driver={Microsoft
Access Driver (*.mdb)};"
strDB = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.Mappath("db\dictionary.mdb") & ";" & _
"Persist Security Info = False"
Set DataConn = Server.CreateObject("ADODB.Connection")
Set RecordsetListUpd = Server.CreateObject("ADODB.recordset")
DataConn.Open strDB
RecordsetListUpd.Open strSQL,DataConn,3,3,adCmdText
RecordsetListUpd.Fields("Tested") = Session("WTested")
RecordsetListUpd.Fields("Correct") = Session("WCorrect")
Is there a " or something missing?
I have searched the web and FAQs for strSQL and found nothing.
Any hep appreciated.
Robert
Robert