force output to pdf must complete before next step (1 Viewer)

DNewman

Registered User.
Local time
Today, 18:16
Joined
Oct 12, 2012
Messages
60
Access 2010 on Windows10

I am using vba to save a report to pdf and then send it as an email attachment in outlook. My problem is that the pdf is not fully created before the e-mail is sent. Is there a neat way to make sure the pdf creation is completed before the code continues to execute.

On the web there are suggestions such as using Do loops or Wait or executing the pdf creation in a subroutine but none of these help - other suggestions involve using C++ code that is beyond my skill set.
 

Gasman

Enthusiastic Amateur
Local time
Today, 18:16
Joined
Sep 21, 2011
Messages
14,398
Preview the report?
 

Users who are viewing this thread

Top Bottom