Just a wild guess... (I could be completely wrong about including the single quotes):
Code:
myCommand.CommandText = "insert into login (UserId, Password) " & _
"values ('@UserId', '@Password') "
myCommand.Parameters.Add("@UserId", txtUserName.Text)
myCommand.Parameters.Add("@Password", txtPassword.Text)
myConnection.Open()
But I hate parameters. I would use
Code:
myCommand.CommandText = "insert into login (UserId, Password) " & _
" values ('" & txtUserName.Text & "', " & _
" '" & txtPassword.Text & "' " & _
" ) "
myConnection.Open()