I have a database and would like the users to only login once.
I have a module to get the user name already, and it is referenced as NTDomainUserName.
I'd like my startup form to look into my "tblUserlist" table which has only one field called "Username", and see if the username exists already. If it doesn't, then add the username to it and do whatever is next. If it does already exist, then bring up a message box and go no further.
(Naturally i'll have another section of code to check if the name exists and remove it when a user closes the database, but that's another question for later)
Can anyone give me a hand on writing this. I'm ok with forms and editing/adding code, but don't know the code or solution to do what i'm after unfortunately.
Cheers
I have a module to get the user name already, and it is referenced as NTDomainUserName.
I'd like my startup form to look into my "tblUserlist" table which has only one field called "Username", and see if the username exists already. If it doesn't, then add the username to it and do whatever is next. If it does already exist, then bring up a message box and go no further.
(Naturally i'll have another section of code to check if the name exists and remove it when a user closes the database, but that's another question for later)
Can anyone give me a hand on writing this. I'm ok with forms and editing/adding code, but don't know the code or solution to do what i'm after unfortunately.
Cheers