I passed a variable thru the URL to another asp page and now want to insert it into a SQL 7 stored procedure and I continue to receive this message:
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near 'NewVariable'.
I use the normal:
NewVariable = Request.QueryString("VariableBeingPassed"
to capture it and assign it to another variable that I then insert in a stored procedure:
rs.Open "sp_CustomQuery ('" & NewVariable & "')", cn
I am lost for answers on this for I have also tried to use the trim and replace functions on this and it continues to give me headaches.
Any help would greatly be appreciated.
Thanks,
Jim
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near 'NewVariable'.
I use the normal:
NewVariable = Request.QueryString("VariableBeingPassed"
to capture it and assign it to another variable that I then insert in a stored procedure:
rs.Open "sp_CustomQuery ('" & NewVariable & "')", cn
I am lost for answers on this for I have also tried to use the trim and replace functions on this and it continues to give me headaches.
Any help would greatly be appreciated.
Thanks,
Jim