bdinnocenzo
Active member
I have the following SQL statement and I get the error message:
"Syntax error in UPDATE statement"
The statement works if I remove the "TOP 1" but I may have multiple entries in the table that match the "WHERE" criteria and only want to set "Canceled" to one of them.
Thanks,
-Bill
"Syntax error in UPDATE statement"
VB.NET:
[FONT="Courier New"] cmd.CommandText = "UPDATE TOP 1 ShoutOuts " & _
"SET Canceled=Yes " & _
"WHERE BidderID=@BidderID " & _
"AND Description=@Description " & _
"AND Amount=@Amount"[/FONT]
The statement works if I remove the "TOP 1" but I may have multiple entries in the table that match the "WHERE" criteria and only want to set "Canceled" to one of them.
Thanks,
-Bill