Solved

How to Continue running code or macro after SendObject is denied by user?

Posted on 2007-04-04
3
306 Views
Last Modified: 2013-11-27
Hello all,

Macro generates some tables and then SendObject's them out to users in 2 parts (two different groups of users recving diff tables).  

Basically:
runcoderuncoderuncode
sendobject: tables A&B to users Al & Bob
sendobject: tables A&C to users Cindy & Deb

Is there some way to set this up so that the enduser can reply 'No' to the first sendobject call, and then still have the code continue to move to the 2nd sendobject call?  no matter what i try, whatever code or parent macro has initiated the request gets shut down as soon as user replies "No" to the first sendobject task.

thanks!!
0
Comment
Question by:new_wes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 61

Accepted Solution

by:
mbizup earned 500 total points
ID: 18851177
You'd have more flexibility to do this if you converted your macro to VBA:

Function SendTheTables()
     On Error Resume Next                '**** the simplest way to handle this
     Docmd.sendObject   .....
     docmd.sendobject  .....
end function
0
 

Author Comment

by:new_wes
ID: 18858538
ha!  perfect.  

thanks!!
0
 
LVL 61

Expert Comment

by:mbizup
ID: 18858593
I'm glad that helped, and hope it helps elsewhere in your applications as well.  Overall, VBA offers you more readable error messages, better error handling, infinitely more flexibility for customized solutions, etc, etc, etc..... than Macros do.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question