Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

update sql

$
0
0
hi all....
i'm not sure if this should be in the forum or the SQl Server forum, but here goes.

I'm trying to update multiple records using code i found on 'webthang'.
My update code is:

Code:

updateSQL = "UPDATE OrderDetails SET InStock=" & fFormat(Request(cInStock)) & "WHERE OrderDetailID=" & fFormat(Request(cRecordID))
but i'm getting this error!

Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near 'OrderDetailID'.

Can anyone see where the problem is?
Thanks guys
Andy

Viewing all articles
Browse latest Browse all 13329

Trending Articles