I have a LogIN form - usertxt and passtxt and a button, and what I want to know is how to call the values of the fields user and password in the database access to open the MAIN FORM..I am connected using DATA1.RECORDSET..Is it possible instead of using ADODC?....
Jump to Post
Use the code this way :
If usertxt.Text = Data1.Recordset.Fields("Username") And passtxt.Text = Data1.Recordset.Fields("Password") Then MsgBox "Login successful" Else MsgBox "Wrong username or password!" End If
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.