specialist
Programmer
Greetings-
Happy holidays.
I am creating an application which updates a DB and I am getting the following error for a reason unknown to me:
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near '='.
add_stepB_NEW_SQLtest.asp, line 52
line 52 =
Set UpdateMainTable = db.execute("UPDATE tblCASInfo SET U_Type = '" & GetUInfo("U_Type") & "', USort = '" & GetUInfo("USort") & "' WHERE CAS_Entry = " & IDField)
----------------
in the above statement,
GetUInfo =
Set GetUInfo = db.execute("SELECT * FROM tblUNames WHERE UName = '" & UName & "'")
------------
UName is a redesignated variable from a form.
I am not sure why the error is happening as it works fine when pointing to an Access DB (this project is a transition from ACCESS to SQL)
Any advice as to how to fix would be greatly welcomed.
thank you in advance for reading this and any direction.
Mike
Happy holidays.
I am creating an application which updates a DB and I am getting the following error for a reason unknown to me:
Microsoft OLE DB Provider for SQL Server error '80040e14'
Line 1: Incorrect syntax near '='.
add_stepB_NEW_SQLtest.asp, line 52
line 52 =
Set UpdateMainTable = db.execute("UPDATE tblCASInfo SET U_Type = '" & GetUInfo("U_Type") & "', USort = '" & GetUInfo("USort") & "' WHERE CAS_Entry = " & IDField)
----------------
in the above statement,
GetUInfo =
Set GetUInfo = db.execute("SELECT * FROM tblUNames WHERE UName = '" & UName & "'")
------------
UName is a redesignated variable from a form.
I am not sure why the error is happening as it works fine when pointing to an Access DB (this project is a transition from ACCESS to SQL)
Any advice as to how to fix would be greatly welcomed.
thank you in advance for reading this and any direction.
Mike