SmileeTiger
Programmer
I have created a password table within my database (created in MS access) and I want to have VC++ open this table and check to see if there is an entry for a particular User ID and Password that is entered in a text box. If there is a entry in the table the program retrive the access level from the database and but it in a variable for later use. Does anyone have any idea how to do this?<br>
<br>
FYI<br>
Text Boxes<br>
UserID: IDC_CardID<br>
Password: IDC_PIN<br>
<br>
The name of the database is: Student Registration System I have already registered the database with ODBC and I have retrieved data from the database elsewhere in my program.<br>
<br>
The data i want is in the passwords table in that database. So the cadrID should be chacked against the username field and the Password should be checked against the password field. If the match the accesslevel field coresponding to that record should be returned otherwise the program should display something like: AfxMessageBox("Bad Log In Attempt: Please try again"
;<br>
Thanks in advance for your help
<br>
FYI<br>
Text Boxes<br>
UserID: IDC_CardID<br>
Password: IDC_PIN<br>
<br>
The name of the database is: Student Registration System I have already registered the database with ODBC and I have retrieved data from the database elsewhere in my program.<br>
<br>
The data i want is in the passwords table in that database. So the cadrID should be chacked against the username field and the Password should be checked against the password field. If the match the accesslevel field coresponding to that record should be returned otherwise the program should display something like: AfxMessageBox("Bad Log In Attempt: Please try again"
Thanks in advance for your help