The code to process the return from the sql query does not exist,it will never validate. Moreover, your sql query is inviting
SQL injection[
^], you should be using parameterized query instead, see the following snippet:
Dim sqlLoginCode As String = "select * from tblusers where User_username = @username AND User_password = @userpassword AND User_usertype = @usertype"
Dim loginCommand As New OleDb.OleDbCommand(sqlLoginCode)
loginCommand.Connection = New OleDb.OleDbConnection(connstring)
loginCommand.CommandType = CommandType.Text
loginCommand.Parameters.AddWithValue("@username", txtUsername.Text)
loginCommand.Parameters.AddWithValue("@userpassword", txtPass.Text)
loginCommand.Parameters.AddWithValue("@usertype", cmbLoginType.Text)
Dim accessReader As OleDbDataReader
accessReader = loginCommand.ExecuteReader
If accessReader.Read Then
If accessReader("User_usertype") = "Administrator" Then
Console.WriteLine("User is Administrator.")
Else
Console.WriteLine("User is Teacher.")
End If
Else
Console.WriteLine("Invalid user or password")
End If
This is a quick draft from notepad for demo purpose, adapt it to your need. One last thing, why do you want the user to indicate his role as admin or teacher since you can get it from the database.