Created
March 3, 2012 04:38
-
-
Save tuldok89/1964388 to your computer and use it in GitHub Desktop.
Update Snippet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmdUpdate = New OleDb.OleDbCommand | |
cmdUpdate.Connection = cn | |
' cmdUpdate.CommandText = "Update Sci_QA_Easy set key = 1 where Question ='" & lblQ.Text & "'" | |
cmdUpdate.CommandText = "Update Sci_QA_Easy set key = 1 where Question=@question" | |
cmdUpdate.Parameters.AddWithValue("@question", lblQ.Text) | |
cmdUpdate.ExecuteNonQuery() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment