Xenix
Registered User.
- Local time
- Today, 19:15
- Joined
- Oct 8, 2001
- Messages
- 124
Can someone help me or know of a command to pause before I send a document. I run a command to create a PDF file with Acrobat distiller but the second part tries to send before the file has been created:
DoCmd.OpenReport "QuotationEmail", acNormal, "", "
DoCmd.OpenReport "QuotationEmail", acNormal, "", "
=[Forms]![Quotation]!"
Dim appOutl As Object
Dim MyNameSpace As Object
Dim myemail As Object
On Error GoTo Email_Err
Set appOutl = CreateObject("Outlook.Application")
Set MyNameSpace = appOutl.getNameSpace("MAPI")
Set myemail = appOutl.CreateItem(0)
myemail.to = [Forms]![Quotation]![Email2]
myemail.subject = "Honda Connectors Quotation"
myemail.body = "Please find attached Quotation"
myemail.Attachments.Add "c:\windows\desktop\Custom~1.pdf", , , "Custom~1.pdf"
myemail.Send
Regards
Mike