I'm a bit amateur and a beginner in database and queries. What I want to do is I have a table with username and password and a usertype column. After username and password is checked I want to check the value in usertype and see if it is 1 the program will open up the form with admin privileges if the usertype is 2 then the I want to open up the form without admin privileges. I can't figure out how I will pass a query which will compare the usertype value I'm a bit amateur and a beginner in database an