Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Viewing Netware login information using VBA

Status
Not open for further replies.

dleiba

MIS
Aug 22, 2001
28
JM
G'day folks,

I am searching for a way to programmatically obtain a User's netware username AND password using VBA.

Is this possible?

If so, ANY assistance would be greatly appreciated.

Thanks

Dominic
 
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),
 
Scoty,

Thanks a lot for responding.

How does the environ("UserName") code work exactly?

What is the syntax?

Also, how does it tie into the users that have been defined for the database?

Lastly, where do I use this code?

Thanks in advance!

Dominic
 
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),
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top