We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
Private Sub comUsername_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles comUsername.TextChanged If comUsername.Text <> "" Then txtPassword.Enabled = True Dim user_full_name As String user_full_name = comUsername.Text SQL2 = "SELECT user_id FROM users WHERE 'user_last_name, user_name' = @user_full_name" myCommand.Connection = conn myCommand.CommandText = SQL2 myAdapter.SelectCommand = myCommand myAdapter.Fill(myData) oReader = myCommand.ExecuteReader selected_user_id = oReader("user_id") MsgBox(selected_user_id) oReader.Close() Else txtPassword.Text = "" txtPassword.Enabled = False End If End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.