How to create a User Login Form in Microsoft Access
Answer » The following details one procedure that could be applied to this scenario. There are many more approaches to this and also other areas that will need to be secured within your database environment. You should also look into Disabling/Enabling the Shift Bypass Key.
Thank you for taking the time to report an issue.
What's wrong... Please write below.
I am hung up on how to get the login information to transfer over to the form. Here is the code that controls the login process;
All I need is the username. And then I need it to autopopulate a field in a form.
For some reason, but now the Login screen does not close properly.
Here is my code for the Login botton of the Login screen.
My initial thought was to create a login form to open when the app opens, then create a form to sit in the background with username / date / access level athen to load my 'home' form where they access all the relevent features of the application.If this is a valid option whats my way forward or am I barking up the wrong tree!
Is there a different built in function that will pull the computer login information rather than the DB access login.
When I use (Current User) now it simply enters Admin in the field since no user login information is in the new database.
Is there a vbscript with directions that I can use to pull their network login as their username and the password I supply them which will give them the appropriate security level I set for them
Is there a vbscript with directions that I can use to pull their network login as their username and the password I supply them which will give them the appropriate security level I set for them?
The problem is when I try to create the exact same login, in my actual database, for some reason it does not work. I checked all the names and so on but cannot seem to get it to work.
I have a form and a table login(user, password, role)where user can login with username and password by referring to Login table.
How can I view the role in MsgBox according to username and password in table login? I'm having trouble in here (Underline words). The Logic is if username and password has been filled and then search in table. If Its TRUE then it will show MsgBox with the role user in table Login.
Or do you have any better codes for this?
What Happen? - I created a login form, where a user enters the login details. It was working fine and I loaded the login form as the form to open when access starts. Each time I open the DB I can see access 2007 popping up before the login form shows, also the background appears.
I was trying to get rid of the background and the access 2007 start screen. I just wanted the login form to show. I then changed the following controls:
Allow Add. = No
Allow Del. = No
Allow Edits = No
Allow Filters = No
Data Entry = No
I saved the form and THEN.
When I started the DB, it do not do the required results and it would not allow me to enter the user details to login. all this said, I cannot access the db to change.
SOmetime back I result some DAO process where you can access another database and not the current one. I would like to do similar code to reset the password on the useraccess table so whenI start my data base it will access a blank password.