You are having MsgBox(ssql) Can you seen that query and run directly? Or through debugger, set a break point and get value of ssql and post it?
Do you have single quotes as part of data? Does it always fail? Id passwrd a valid table, and other 2 columns Ok?
padtes
Junior Poster in Training
86 posts since Aug 2009
Reputation Points: 53
Solved Threads: 20
On your original post you are infact missing a space to the left of the WHERE keyword. My suggestions would be to use "&" instead of "+" symbol to concatenate the strings and enclose the table/fieldnames in brackets.
On another note, with regards to:
UPDATE passwrd
Are you sure your TABLE is named passwrd? To clarify, if you had the following:
Table: Person
Fields: password, username
then it should be:
Dim ssql As String = "UPDATE [Person] SET [password] ='" & TextBox1.Text & "' WHERE [username]='" & TextBox2.Text & "'"
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244
hielo
Veteran Poster
1,124 posts since Dec 2007
Reputation Points: 116
Solved Threads: 244