I have the following code to determine if a button is visible:
Private Sub Form_Open(Cancel As Integer)
If fOSUserName() = "username" Then
Me.testdee.Visible = True
Else
Me.testdee.Visible = False
End If
End Sub
I have a table of users with yes/no check boxes for various buttons, I would like to run a query for the button then loop through this If statement to see if the user should be able to see this button. What I have tried seems to just put the whole thing into an endless loop
Thanks for any help or suggestions
Private Sub Form_Open(Cancel As Integer)
If fOSUserName() = "username" Then
Me.testdee.Visible = True
Else
Me.testdee.Visible = False
End If
End Sub
I have a table of users with yes/no check boxes for various buttons, I would like to run a query for the button then loop through this If statement to see if the user should be able to see this button. What I have tried seems to just put the whole thing into an endless loop
Thanks for any help or suggestions