Login Form that brings back certain records according to the user login. (1 Viewer)


New member
Jul 24, 2007
I have create a login form for my users to login to my database. Once the login is successful I want the form check to open up with only that user records that is assiged to them via the empnumber field which has there assigned number.

The employee table there is an acccess level field.

When the user login I want them to open the checks form because they can only add notes. When they login I want them to be able to see their empnumber records only, no other employee records.

When admin and tech person login I want the checks admin form to open with all records available.

I have attached a small version of my database. Thank you so much.


Pat Hartman

Super Moderator
Staff member
Feb 19, 2002
You will need a control on the login form to hold the empnumber after the user logs in. This field should be null when an admin logs in and filled otherwise. Then your queries will include a reference to the login form. Instead of closing the login form when the login is complete and you open your menu, just hide the login form so it stays open throughout the session.

Where ... AND (empnumber = Forms!login!empnumber OR Forms!login!empnumber Is Null):

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom