mzimm Posted October 19, 2003 Posted October 19, 2003 Hello: What is the best way to prevent a certain user name/group from using one of the buttons I created for admin use? Can I put a password on a button? The button performs a script. I want the general users to be able to use all the other buttons on the layout except one. Thanks Mike
stanley Posted October 19, 2003 Posted October 19, 2003 Mike: You can add a test for Status(CurrentUserName) into the beginning of the script which throws you out of the script upon failure, shows an error message, whatever. -Stanley
TWillson Posted October 19, 2003 Posted October 19, 2003 Mike, You can use a portal to hide the button (as well as other objects on the layout). When the relationship a portal is based on is invalid, the portal will disapear along with any objects contained within it. Build a self relationship which is valid only when the administrator, or someone from the administrator group is logged into the database. Place the button inside the portal. When a user logs in who does not have administrator privleges the portal will disappear along with the button. There should be some examples from the professionals on this board floating around. If not let me know and I will put one up. Tom
Wendy T Posted October 24, 2003 Posted October 24, 2003 A less elegant (but handy) solution is to use the Status(CurrentModifierKeys) function in the first line of your script. Only users who click the button while pressing the correct key combination of shift/ctrl/alt (whatever you specify) will be able to run the script. cheers, Wendy
Recommended Posts
This topic is 7700 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now