Forums
This topic is locked
help it used to work but now it doesn't!!!!
Posted 22 Jan 2005 21:24:23
1
has voted
22 Jan 2005 21:24:23 Matt Bristow posted:
HiI'm updating a site I did a year ago and within certain pages it has to update 2 records in the same table so in the old version the code went like this:
if Request("selected"

rsQualifier.Update
rsQualifier("DepAirportChoice"


rsQualifier("ExtensionReq"


rsQualifier("ExtensionDetails"


rsQualifier("CCName"


rsQualifier("FreqFlyerAF"


rsQualifier("FreqFlyerBA"


rsQualifier("FreqFlyerCont"


rsQualifier("SeatPref"


rsQualifier.Update
If Not rsQualifier2.EOF Or Not rsQualifier2.BOF Then
rsQualifier2.Update
rsQualifier2("DepAirportChoice"


rsQualifier2("ExtensionReq"


rsQualifier2("ExtensionDetails"


rsQualifier2("FreqFlyerAF"


rsQualifier2("FreqFlyerBA"


rsQualifier2("FreqFlyerCont"


rsQualifier2("SeatPref"


rsQualifier2.Update
End If
Response.Redirect("reg_flight_test.asp"

end if
Now the MSSQL database is on a new server (and a newer version as well, or so I am told) and it returns the following error:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'Confirmation'.
/work/equant_2005/reg_flight.asp, line 944
where line 944 is the second rsQualifier.Update line in the code above.
anyone any ideas?