It shows that you are unregistered. Please register with us by clicking Here
![]() |
|
![]() |
![]() | Register - FAQ - Today's Posts - New Posts - Support - Search | ![]() |
|
|
#1 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 28
Posts: 5
|
Hi,
I have this variable when I update the table it gives an error here is my update code Code: str= "UPDATE tblnames SET Name = '" & name & "' WHERE Id ='" & getid & "'" can someone tell me what’s wrong with it because the name variable has a comma in it Thanks Peyton |
|
|
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Jul 2006
Age: 48
Posts: 25
|
The syntax for UPDATE is
UPDATE <table name> SET <column> = <value> [,<column> = <value>] [FROM <source table(s)>] [WHERE <restrictive condition>] str= "UPDATE tblnames SET Name = '" & name & "' WHERE Id ='" & getid & "'" This looks ok but, but i am not sure about your ID, is this a string or a numeric value? |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems with include in an if statement | cameron | ASP | 2 | 08-15-2007 04:37 PM |