I am creating a database for college coursework. I am using a login system, where the user puts in their studentID found in the table student, and password found in the table student. I made a blank form and added the code
If (Text1.Text = student![StudentID]) And (Text2.Text = student![Password]) Then
MsgBox ("test")
Else: MsgBox ("failed")
End If
To a command button.
This isn't working because i presume I need to make it loop thru studentID until it = what is in text1 and the same with password.
Any ideas how to do such a thing? All I need is it to extract the data from the table, compare the 2 sets of data, if it is true then msgbox("working") if it is false msgbox("Not working")
Thanks
Will