Hello all,
Many thanks in advance for any help offered.
I am new to Access 2010 and I have really very little skill and no experience with it yet.
I am trying to construct a log-in for my database that will permit employees at our company to select their names from a drop down and enter a password.
I made a table with three fields - an autonumber primary key, a field with user IDs (the records will contain each employee name in this field) and finally a field with passwords (the records will contain each employee's password in this field).
I built a "login" form with a drop list so the employee can select his/her name and I used a query to the User ID field in the aforementioned table as a data source. Then I put a text box and a button beneath it. My intent is that the employee will select his/her name from the list box, then enter his/her password, then click the button, and finally either enter the database if his/her username and password are correct or get an error message.
I am trying to use the macro builder to create an on click event which will check that both the employee name selected in the drop list and the password typed correspond to the record in the table. It seems easy to use the OpenForm function to make the button just open the form but I get nothing but error messages when I try to build something that can test if the user name and password are correct.
How can this be accomplished in the macro builder? Is VBA necessary? At least at this point, VBA seems really too difficult to me so I am hopeful that it can be accomplished using the somewhat less daunting Macro builder.
On a related note, if I use this technique in conjunction with a password for the whole application and I hide all the controls and make it impossible for anyone except myself to edit anything, is this a realistic way to try to secure the database? Or is this laughably simplistic and even somebody with basic access skills will be able to get in and damage the database?
I realize a truly skillful malicious user will break anything a noob like myself can create so I have no illusions about creating something invincible - I just want to have a reasonable level of security for the database that will foil someone who does not have extreme computer skills.
I'm very regretful if this is a tedious or difficult question to answer; please note as I mentioned I am new to Access and there really seems to be a massive amount to learn.I search the forums but suspect I will continue to have many questions.
Again, many thanks for any help. I am very grateful.