Rashar
04-08-2004, 11:30 AM
Hello,
My ASP code has a sql query string that i'm trying to return values, but i am getting the following error message...thanks in advance for all your help.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '[QuizID]='.
/robert/aspquiz/VBQUIZ.asp, line 27
Here is the following script:
<%
'Dimension variables
Dim Conn 'Holds the Database Connection Object
Dim rs
Dim strSQL 'Holds the SQL query to query the database
Dim Quiz, QuizID
'Create an Conn connection object
Set Conn = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("VBQUIZ.mdb")
set RS = Conn.Execute("SELECT * FROM [quiz] WHERE [QuizID]=" & request.querystring("Quiz"))
%>
My ASP code has a sql query string that i'm trying to return values, but i am getting the following error message...thanks in advance for all your help.
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '[QuizID]='.
/robert/aspquiz/VBQUIZ.asp, line 27
Here is the following script:
<%
'Dimension variables
Dim Conn 'Holds the Database Connection Object
Dim rs
Dim strSQL 'Holds the SQL query to query the database
Dim Quiz, QuizID
'Create an Conn connection object
Set Conn = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("VBQUIZ.mdb")
set RS = Conn.Execute("SELECT * FROM [quiz] WHERE [QuizID]=" & request.querystring("Quiz"))
%>