Hi,
I got a asp page where I am getting the following error. (Line 126 is
actually the
RS.open statement.)
ERROR MESSAGE
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in
query expression 'GrantID ='.
/gwis/Recalc.asp, line 126
THE FOLLOWING IS THE PART OF CODE THAT IS PRODUCING ERROR:
'New Connection
myDSN="DRIVER={ Microsoft Access Driver (*.mdb)}; "
myDSN=myDSN & "DBQ=C:\gwi s Data\fpdb\GWIS. mdb"
set CN=server.creat eobject("ADODB. Connection")
set RS=server.creat eobject("ADODB. Recordset")
CN.Open "myDSN"
RS.ActiveConnec tion=CN
SQL = "SELECT COUNT(*) AS reccount FROM CurrentQuarterT bl WHERE GrantID =
" & GrantID & ";"
RS.Open SQL
Any help is appreciated in advance. Thanks.
I got a asp page where I am getting the following error. (Line 126 is
actually the
RS.open statement.)
ERROR MESSAGE
Technical Information (for support personnel)
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in
query expression 'GrantID ='.
/gwis/Recalc.asp, line 126
THE FOLLOWING IS THE PART OF CODE THAT IS PRODUCING ERROR:
'New Connection
myDSN="DRIVER={ Microsoft Access Driver (*.mdb)}; "
myDSN=myDSN & "DBQ=C:\gwi s Data\fpdb\GWIS. mdb"
set CN=server.creat eobject("ADODB. Connection")
set RS=server.creat eobject("ADODB. Recordset")
CN.Open "myDSN"
RS.ActiveConnec tion=CN
SQL = "SELECT COUNT(*) AS reccount FROM CurrentQuarterT bl WHERE GrantID =
" & GrantID & ";"
RS.Open SQL
Any help is appreciated in advance. Thanks.
Comment