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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Password protect

Status
Not open for further replies.

ccs2

Instructor
Oct 8, 2003
37
GB
Does anybody know how to restrict access to parts of the dbase by password protection on a button, best of all on the switchboard?

Cavan Stewart
 
Do you have a workgroup, so any user has to login?
If not, create one (with Wrkgadm.exe in the Office/103x folder)

Then you can assign different rights to each user/group.

If you need something more specific, you could also add some code like this to the affected forms:

Dim SU As Variant 'SuperUser-Array
Dim found As Boolean

SU = Array("superuser1", "superuser2", and so on)
For i = 0 To UBound(SU)
If LCase(Application.CurrentUser) = SU(i) Then
found = True
Exit For
End If
Next
Me.YourSuperUserControl.Visible = found

If you choose "Visible" or "Enabled" depends on what the Control you would like to protect does...

Does that help you?
[lightsaber]
makeItSo

Andreas Galambos
EDP / Technical Support Specialist
Bowne Global Solutions Wuppertal, Germany
(andreas.galambos@bowneglobal.de)
HP:
 
Try this thread. I just looked at it. It should help and it's very simple.

thread702-695067


Jerome Benton
JERPAT Web Designs
GOD Is Good All The Time!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top