My database opens to a specific form on start up and it checks the user name and if it doesn't match what it's coded to in the VBA then it logs the users information and kicks them out of the database.
My question is can I use VBA to check if the current user -Environ("USERNAME")- matches one of a few cells in a table and then execute my code based off of the result.
Table name is "AccessListing" and the row "IDNUM" contains the few members USERNAME.
My reasoning is because I will not always be working in my position, so I'm trying to make it fool proof. This way when I leave, the next person won't jack it up.