Domonic,
At my company we use novell login on an NT machine and I use environ("UserName" to get my people logged into the database. Some will say that environ can be duped but With novell I find that to be a little harder than some people would like to admit. Give it a try see if it works.
HTH
Scoty : Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
Dominic,
the Environ("UserName"'s syntax is exactly that. You can use it just as it is. Make it part of a condition statement. I use it in a select case ie
Code:
Select Case Environ("UserName")
Case "Bill" Or "Don" Or "Scoty" Or "Peter"
'Do Nothing
Code:
Case Else
Application.Quit
End Select
The above example is just a real easy and quick lower level security script. I put it in the onload event of the initial form of the database. This way if the username is not bill or don or scoty or peter it will just quit the application without giving anyone access rights. Again this a lower level security script. Anyone with any Access Skill can easily bypass this measure.
HTH
Scoty : Learn from others' mistakes. You could not live long enough to make them all yourself."
-- Hyman George Rickover (1900-86),
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.