Database Security questions.

Infiltrator64

Board Regular
Joined
Dec 19, 2004
Messages
63
How can I hide the Design button for a user login but display it for admin login?

I have my db locked down now so users can't save any design changes but they can still click on the design button and see the design.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Say the button is [cmdDesign] and the login group is [UserGroup].

On the Current event of the form, place this one-liner:
[cmdDesign].Visible=([UserGroup]="Admin")

In case you haven't played with events before, set it up like this:
In the Form properties, pick the Events tab.
Double-click the blank line next to Current. You'll see Event Procedure.
Click the Builder (...) button at the right of the line, and you'll see the code module.
In the blank line in the routine, paste the code above. You will need to change control and field names to suit.

Denis
 
Upvote 0
The answer was based on having user-level security (or some security scheme) set up.

You may find this useful as a starting point.

Denis
 
Upvote 0

Forum statistics

Threads
1,213,517
Messages
6,114,089
Members
448,548
Latest member
harryls

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top