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?....
NewCoder_31
0
Newbie Poster
Recommended Answers
Jump to PostUse 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
Jump to PostDon't code your controls name. Change the code snippet given. If you are able to program something than this is not good for you to neither for me to spoon feed you.Try every thing on your own.
All 5 Replies
Hamza Saleem
0
Newbie Poster
NewCoder_31
0
Newbie Poster
Hamza Saleem
0
Newbie Poster
NewCoder_31
0
Newbie Poster
Aslam Mansoor
2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.