Here's a good place to start.
One problem I saw was a missing ending quote.
Also instead of using txtUser.Text you should use parameters. If will save you both time and aggravation.Code:myCommand.CommandText = "SELECT name FROM user WHERE name = '" + txtUser.Text & "'"




Reply With Quote