orangeblue
Programmer
Hi
I got this error in my asp page
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression
Basically I have a script that updates a record using the access version of a store procedure. I think the problem is that is the text has an ‘ or any other characters.
I was wondering if any one can help or has another example of how to uses a sp in access
The code is below
Thanks in advance
Hesh
' Connection Object
Dim con
Set con = Server.CreateObject("ADODB.Connection")
' Recordset Object
Dim rs
response.write gs_desc
' connecting to database
con.Open oConn
' executing stored procedure
Set rs = con.Execute ("exec qry_Admin_product_update '" & gs_title &"', '" & cstr(gs_desc) & "','" & gl_price &"', '"& date() &"', '" & gl_id &"' ")
' showing all records
' closing connection and freeing resources
con.Close
Set rs = Nothing
Set con = Nothing
I got this error in my asp page
Error Type:
Microsoft JET Database Engine (0x80040E14)
Syntax error (missing operator) in query expression
Basically I have a script that updates a record using the access version of a store procedure. I think the problem is that is the text has an ‘ or any other characters.
I was wondering if any one can help or has another example of how to uses a sp in access
The code is below
Thanks in advance
Hesh
' Connection Object
Dim con
Set con = Server.CreateObject("ADODB.Connection")
' Recordset Object
Dim rs
response.write gs_desc
' connecting to database
con.Open oConn
' executing stored procedure
Set rs = con.Execute ("exec qry_Admin_product_update '" & gs_title &"', '" & cstr(gs_desc) & "','" & gl_price &"', '"& date() &"', '" & gl_id &"' ")
' showing all records
' closing connection and freeing resources
con.Close
Set rs = Nothing
Set con = Nothing