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.
> This is possible in VBA but not, as far as I know, with macros.
>
[quoted text clipped - 15 lines]
>
> Please respond in the newgroup and not by email.
Either set up error handling and trap the errors, or - and much better -
write code that checks the user's group membership (see e.g.
http://www.access-programmers.co.uk/forums/archive/index.php/t-70864.html)
when the form loads and adjusts the Visible or Enabled properties of the
buttons accordingly.
>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
[quoted text clipped - 19 lines]
>>
>> Please respond in the newgroup and not by email.
--
John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
csepgomez - 06 Jan 2005 14:01 GMT
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.
> Either set up error handling and trap the errors, or - and much better -
> write code that checks the user's group membership (see e.g.
[quoted text clipped - 30 lines]
>
> Please respond in the newgroup and not by email.