The error message says that you are missing a semicolon at the end of the statement, right? So try this...
Code:
mySQL = "insert into password1 (password) values"
mySQL = mySQL& "('" & password & "')"
mySQL = mySQL& " where uid = '" & uid & "';"
Perhaps...!?
Hope it helps
Jacob.