A
alan_mitchell
Hi,
Here's the situation.
I have some VB code (GetUserName) which pulls in the username of the user
from the Windows API. I then have a table which contains the desired access
levels for each employee. The fields are:
* EmployeeName (text)
* AllowedAccessToControlA? (yes/no)
* AllowedAccessToControlB? (yes/no)
* AllowedAccessToControlC? (yes/no)
So for example, Joe Bloggs might be allowed access to A and B but not C.
I now want to make controls on a form visible/not visible based on these
access levels. So if the user is Joe Bloggs, I would want to make controls A
and B visible, but control C invisible.
I can't think of an easy way to do this but I'm sure there must be one. Any
ideas?
Thanks for your help!
Alan
Here's the situation.
I have some VB code (GetUserName) which pulls in the username of the user
from the Windows API. I then have a table which contains the desired access
levels for each employee. The fields are:
* EmployeeName (text)
* AllowedAccessToControlA? (yes/no)
* AllowedAccessToControlB? (yes/no)
* AllowedAccessToControlC? (yes/no)
So for example, Joe Bloggs might be allowed access to A and B but not C.
I now want to make controls on a form visible/not visible based on these
access levels. So if the user is Joe Bloggs, I would want to make controls A
and B visible, but control C invisible.
I can't think of an easy way to do this but I'm sure there must be one. Any
ideas?
Thanks for your help!
Alan