4 replies
by firefox
Are you using Microsoft Access? If you are, I think you are making this too complicated. Why not just put a password on the Admin login name for the database and use the employee's login name for the default value where you want it?
To give a password to user Admin in Access97, go to Tools, Security, User and Group Accounts, Change Logon Password, and enter in the New Password (& Verify).
Then add a username for each employee (they don't need to have passwords).
Now go into the details of the field you want the user's name to go and use
=CurrentUser()
for the Default Value.
From now on, the user will enter his username when opening up the database and that username will automatically show up where you told it to. There is no need to mess with BeforeInsert and AfterInsert details.
Make sure each employee logs out of the database when they are done, so the next user can enter his name.
If you want to get fancy, you could even create a form that opens up first, which would ask for the user's name. Then you could point to that form field in the Default value of the data entry area. When a new employee comes along, they could just enter their name on that form, without even logging out of the database.
Other people may have more ideas for you too, if you really want to make the drop-down list box work the way you want.
by rcoleman
by rcoleman
by rcoleman
This discussion is closed to new replies.
Trending Software posts
Sort by Trending