You can't use a WHERE clause with an INSERT statement. The WHERE is used for SELECT, UPDATE and DELETE queries. Try this:
mySQL = "INSERT INTO password1 (password) VALUES"
mySQL = mySQL & "('" & password & "')"
If you do need to add the UID as well, modify your statement so it inserts the UID columns as well. If you mean to change the password, your query is OK, except for the INSERT keyword. Change it to UPDATE and it should run fine.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|