05-05-15, 02:25 AM
Using command As New SqlCommand("SELECT [dbo].[EmployeeStatus] (@UserName, @Password)", connection)
command.Parameters.AddWithValue("@UserName", TextBox1.Text)
command.Parameters.AddWithValue("@Password", TextBox2.Text)
connection.Open()
MsgBox(command.ExecuteScalar)
connection.Close()
End Using
command.Parameters.AddWithValue("@UserName", TextBox1.Text)
command.Parameters.AddWithValue("@Password", TextBox2.Text)
connection.Open()
MsgBox(command.ExecuteScalar)
connection.Close()
End Using
