I have done alot of research on this problem but I am unable to figure it out.
I have a table created with the following fields
ID
UserID (domain account)
UserName (full name of person)
UserRights(the user's rights)
to this table I have attached a query with a where clause on USERID
=Where Environ("username")
Basically when I run this query it will return the row for the current logged user.
Here is what I want to do.
On the first form to open I place some code that will run this query and then assign the string in UserName to a public variable and Assign the string in UserRights to a public variable.
The purpose of this is to have an "updated by" field in the main database that will display the full username. Also certain forms have administrator buttons that would be hidden to users that have UserRights set to "user"
This is going to be a shared database.
Thank you
Marc