R
Ron
I have a CurrentUser() value setup in an Unbound field on
a form called [Startup] because I want to know who's
logged in.
Now here's what I would like to do but I'm having a hard
time figuring out the best way to do it.
I would like to hide certain buttons on the Form according
to who's logged in at the time.
i.e. If User 1 is logged in then he/she wouldn't see
buttons 2 & 3; if User 2 is logged in then buttons 1 & 2
are hidden; etc.
Now I know how to hide buttons using the Visible property
in VB, but instead of adding users to probably an
If..Then..Else in some sort of an Array in the script (and
having to remember to change names in that Array if people
leave), I would rather it cross reference the tables where
the names are stored using that Unbound field [CurrentUser]
on the [Startup] form with the CurrentUser() function
attached to that field.
I have a couple of user tables already setup (their values
are used elsewhere). We'll call the tables [Designers] &
[Developers]
I'm using the On_Load property of the [Startup] form to
develop the script.
Is there a way to do this?
Any help would be appreciated.
Thanks!
Ron
a form called [Startup] because I want to know who's
logged in.
Now here's what I would like to do but I'm having a hard
time figuring out the best way to do it.
I would like to hide certain buttons on the Form according
to who's logged in at the time.
i.e. If User 1 is logged in then he/she wouldn't see
buttons 2 & 3; if User 2 is logged in then buttons 1 & 2
are hidden; etc.
Now I know how to hide buttons using the Visible property
in VB, but instead of adding users to probably an
If..Then..Else in some sort of an Array in the script (and
having to remember to change names in that Array if people
leave), I would rather it cross reference the tables where
the names are stored using that Unbound field [CurrentUser]
on the [Startup] form with the CurrentUser() function
attached to that field.
I have a couple of user tables already setup (their values
are used elsewhere). We'll call the tables [Designers] &
[Developers]
I'm using the On_Load property of the [Startup] form to
develop the script.
Is there a way to do this?
Any help would be appreciated.
Thanks!
Ron