Hi all. Using access 2007. I have some generic code for users to logon to a database using their windows api. The only way I know to retrict a user to a form or to a record only they own is on form load.
It only half works. If <> "jdoe" works but <> "janedoe" doesn't.Code:If GetNetworkUserName <> "jdoe" or <> "janedoe" then msgbox "you don't have permission to access this form
How can this code work with or?
Thanks