Private Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Staz As Database1DataSet.AdminLoginRow() Staz = Database1DataSet1.AdminLogin.Select("AdminUsername'" & TextBox1.Text & "'") If Staz(0).AdminUsername.Equals(TextBox1.Text) Then If Staz(0).AdminPassword.Equals(TextBox2.Text) Then Me.Hide() Staff_ManageAccounts.Show() End If Dim Kaz As Database1DataSet.ProfessorLoginRow() Kaz = Database1DataSet1.ProfessorLogin.Select("ProfessorUsername'" & TextBox1.Text & "'") If Kaz(0).ProfessorUsername.Equals(TextBox1.Text) Then If Kaz(0).ProfessorPassword.Equals(TextBox2.Text) Then Me.Hide() Faculty_Main.Show() End If End If End If End Sub
Database1DataSet1.AdminLogin.Select("AdminUsername'" & TextBox1.Text & "'")Database1DataSet1.ProfessorLogin.Select("ProfessorUsername'" & TextBox1.Text & "'")
AdminUsername'" & TextBox1.Text & "'"
Database1DataSet1.AdminLogin.Select
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)