Using Access2010, I have created an app using both Horizontal and Vertical navigation buttons.
I want to hide (different) buttons for (different) users - depending on the permissions.
When the user opens the front end, I pick up their domain username and use that to review their permissions.
So far, I am cycling through my Tbl_User_ACL which has the following.
USER_ID User ID Number
NavTab_ID The tab number assigned by access when it was created
CanSEE True/False
My code (paraphrased) says
Cycle through each Tbl_User_ACL record where the user_ID = LoggedInUserID
If not(CanSEE) then
Me.NavigationTabxx.visible = false
end if
Loop
My problem here is....
How do I substitute the 'xx' (Tab Number) in my code.
I want to hide (different) buttons for (different) users - depending on the permissions.
When the user opens the front end, I pick up their domain username and use that to review their permissions.
So far, I am cycling through my Tbl_User_ACL which has the following.
USER_ID User ID Number
NavTab_ID The tab number assigned by access when it was created
CanSEE True/False
My code (paraphrased) says
Cycle through each Tbl_User_ACL record where the user_ID = LoggedInUserID
If not(CanSEE) then
Me.NavigationTabxx.visible = false
end if
Loop
My problem here is....
How do I substitute the 'xx' (Tab Number) in my code.