Have second command wait for first to end

  • Thread starter Thread starter SAC
  • Start date Start date
S

SAC

In code I want to print a report and then email it, but the email code
starts to run before I can finish printing the report to a file.

I have docmd.OpenReport......

Then I have docmd emailReport....

Can I put something in there to have the email line wait...

Thanks.
 
Hi, SAC.

How about:

MsgBox "Press OK to email completed report."

Sprinks
 

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

Back
Top