Access Database - VB Help

Associate
Joined
20 Jun 2004
Posts
1,002
Location
Manchester
I'm doing a little database for work, and i want, when the database starts up, to take the logon ID of the user (say, 1037897) and check it against the list of IDs in tbl_staff and if its not there, bring up a form asking the user to input their name and surname and enter their hours for the week.

I can do most of it, but i need to know the code for taking a system variable (such as logonID in XP), so i can make it auto-appear in the form that pops up in the top, i assume it's just a query i can run after to check for the presence of it then.

Can anyone help?
 
Or you could just use Environ("USERNAME") - this will just you the users login name. :)

TrUz
 
Back
Top Bottom