Stop macro based on user-level security

G

Guest

I have a database that I assigned user-level security to stop certain users
from create/update/delete data and thus blocking access to certain forms.
Normally to access these forms a user will click a button, depending on type
of form i.e. create, details (read-only), or update. The button was created
using a macro. When a restricted user (read-only) clicks on, for ex.
"Create" button, they successfully receive a message stating they do not have
sufficient permission. But then my macro fails and an "Action Failed" window
appears with option to Halt macro.

I would like to either set a condition in macro or add code to automatically
halt or stop macro behind the scenes. Does anyone know if this is possible
(based on user-level security)?
 
G

Guest

I have converted the macro to vba ... I thought I would be able to use code
to call macro and then use and if...then statement to halt macro if action
failed.
 
G

Guest

Thanks, but I didnt have to go to that extent... the security automatically
displayed message stating cant open form. All my code has is the open form
command. That was suffice. Thanks for the information, it was very helpful
and will consider for future.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top