Stemdriller
Registered User.
- Local time
- Today, 18:38
- Joined
- May 29, 2008
- Messages
- 187
Hi all
I am trying to define a Public Variable for the first time and having a few issues.
I have declared the variable as
Public AdminUser As String.
When the user logs in
AdminUser = Me.cbo_user.Column(1)
Doing a step into hovering the mouse over 'AdminUser' does indeed show the username.
But in different forms, if a button is invisible by default, if certain users log in certain buttons should be become visible
So on the form_current i am typing
If AdminUser = "John Smith" Then
Command1.Visible = True
I was then expecting the button to become visible, but it doesn't
Can someone put me right?
Thanks
I am trying to define a Public Variable for the first time and having a few issues.
I have declared the variable as
Public AdminUser As String.
When the user logs in
AdminUser = Me.cbo_user.Column(1)
Doing a step into hovering the mouse over 'AdminUser' does indeed show the username.
But in different forms, if a button is invisible by default, if certain users log in certain buttons should be become visible
So on the form_current i am typing
If AdminUser = "John Smith" Then
Command1.Visible = True
I was then expecting the button to become visible, but it doesn't
Can someone put me right?
Thanks