VB is telling me that my field names inside tblClients, such as ClientID are undefined. All I want to do is update a selected record that was loaded into a series of textboxes.
statement = "UPDATE tblClients " & _
"SET (" & _
ClientID = "'" & txtClientID.Text & "', " & _
Addr1 = "'" & txtAddr1.Text & "', " & _
Addr2 = "'" & txtAddr2.Text & ", " & _
City = "'" & txtCity.Text & "', " & _
ClientName = "'" & txtClientName.Text & "', " & _
ShortName = "'" & txtShortName.Text & "', " & _
Comment = "'" & txtComment.Text & "', " & _
Phone = "'" & txtPhone.Text & "', " & _
State = "'" & txtState.Text & "', " & _
Zip = "'" & txtZipCode.Text & "'" & _
"" & _
"WHERE (" & ClientID = "'" & txtClientID.Text & "'" & _
""
A syntax example or a clue as to where i might find good examples would be a nice clue. THanks for any help you can provide!
Mark
statement = "UPDATE tblClients " & _
"SET (" & _
ClientID = "'" & txtClientID.Text & "', " & _
Addr1 = "'" & txtAddr1.Text & "', " & _
Addr2 = "'" & txtAddr2.Text & ", " & _
City = "'" & txtCity.Text & "', " & _
ClientName = "'" & txtClientName.Text & "', " & _
ShortName = "'" & txtShortName.Text & "', " & _
Comment = "'" & txtComment.Text & "', " & _
Phone = "'" & txtPhone.Text & "', " & _
State = "'" & txtState.Text & "', " & _
Zip = "'" & txtZipCode.Text & "'" & _
"" & _
"WHERE (" & ClientID = "'" & txtClientID.Text & "'" & _
""
A syntax example or a clue as to where i might find good examples would be a nice clue. THanks for any help you can provide!
Mark