View Single Post
  #4 (permalink)  
Old December 30th, 2007, 09:47 AM
jvanreck jvanreck is offline
Registered User
Join Date: Dec 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts

I bought your book in the spanish version and it looks great, but I have had problems with the Update command.
I have copied the code as it is and it still doesn't makes the update.

If you change the parameter "@CustomerID" for 'ALFKI', it always updates
the customer with customerID = 'ALFKI'.

If you remove the WHERE condition, it updates ALL the records.

It seems that the problem is that the program is not getting the parameter CustomerID for the "WHERE [CustomerID] = @CustomerID" in the UPDATE command.

Please assist!!! Thanx

BTW: It seems related to,gridview