Thank you for your reply kjv1611. I don't want to hide the shutter bar though. I want to hide a shortcut in the shutter bar with VBA. The shortcut is to a form. I want to set the shortcut Hidden attribute to true using VBA. The use case is providing a single database front end to multiple users, where forms should display in the shutter bar based on the role of the particular user.
Well, as for how to access it, have you tried checking through the DAO objects, perhaps? I've never tried, but if there is a DAO object there, you can reference its properties that way.
If you cannot find it that way, then perhaps you can have 2 different front-end templates. 1 with the item(s) hidden, and 1 with the item(s) not hidden.
Then you simply hand them out according to which they should receive, based on their usertype... either via a list you keep, or a "main" database that associates the username with the usertype..
"But thanks be to God, which giveth us the victory through our Lord Jesus Christ." 1 Corinthians 15:57
Hi,
I found the code: Application.SetHiddenAttribute(acObjectType, name as string, hidden as boolean) I don't know the rules linking to other sites but to give the person that posted credit, his name is Tim Ferguson
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.