I'd like to restrict users from opening a database more than once, by adding there network login name to a one column table (TblUsersLoggedIN) when they open the database.
Then if they try to open it again without closing it down, on another computer for example, it will first check to see if their username already exists in the table, and if it does, deny them access.
The problem is, I can establish the domain user name, but I can't think of the code to use to do the check to see if they (their username) already exist in the table.
e.g. if exist row in tblusersloggedin = ntdomainusername
Anyone any ideas?
Then if they try to open it again without closing it down, on another computer for example, it will first check to see if their username already exists in the table, and if it does, deny them access.
The problem is, I can establish the domain user name, but I can't think of the code to use to do the check to see if they (their username) already exist in the table.
e.g. if exist row in tblusersloggedin = ntdomainusername
Anyone any ideas?