Tupacmoche
Registered User.
- Local time
- Today, 05:56
- Joined
- Apr 28, 2008
- Messages
- 291
I have code used to give access to a button in my application. What, I want to do is improve it and make it more flexible to update. Specifically, a new users is needed but since I coded it (see below), I have to wait until the end of the day to make the change. Is there a table based method that, I can use and simple add a new user?
Code:
Public Function DecUser()
Dim UserC As Boolean
UserC = False
If GetCurrUser = "Robert Slim" Or _
GetCurrUser = "Elizabeth Wright" Or _
GetCurrUser = "Andrew Small" Or _
GetCurrUser = "Travis Dell" Or _
GetCurrUser = "Erica Harris" Or _
GetCurrUser = "Mitzie Zee" Or _
GetCurrUser = "Chris Meeby" Then UserC = True
If UserC = False Then
Else
End If
DecUser = UserC
End Function