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

.Enabled feature for buttons on switchboard.

Status
Not open for further replies.

Zycmi

IS-IT--Management
Jun 19, 2002
42
CA
I am trying to add code for the buttons to be enabled for certain users and not for others... I've got the user tables and account information already complete, however, when I place a statement such as the following in
Private Sub Form_Current()

If OptionLabel3.Caption = "Staff" Then
Option3.Visible = False
Else
Option3.Visible = True
End If

For some reason, this coding is completely disregarded even though the names and codes are correct and accepted by the program, Can anyone help me figure out how to get it to work? thanks..

Zycmi
 
I also have an End Sub statement in there, I simply didn`t place it in my message...

Any Ideas why it woulnd`t work?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top