Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2007 create email in Outlook; how to save it in a specific fold

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
I have this code which works great and saves the file in the "Drafts" folder. I was hoping there was a way to save these emails in a folder called "Parents", is that possible?

Code:
        Dim OlApp As Object
        Dim OlMail As Object
    
        Set OlApp = CreateObject("Outlook.Application")
        Set OlMail = OlApp.createitem(olmailitem)
        
        OlMail.Recipients.Add Email
        
        'Add the two attachments
        OlMail.Attachments.Add FullPath & PDFFile
        OlMail.Attachments.Add "my.pdf"
        
        OlMail.subject = subject
        OlMail.htmlBody = newmessage
    
        ' save the message
        OlMail.Save

TIA

DougP
 
First, which version of Access are you running?

Second, it may be easier to save it to the drafts folder in Outlook and then move it.
 
I am saving it in the drafts now i.e. OlMail.Save
I need to generate 160+ emails and need them in 9 groups
Grade 1
Grade 2
Grade 3
etc

DougP
 
the version of Access is in the title of the post
"Access 2007 create email in Outlook; how to save it in a specific fold"

which is how I always start all my posts, since there are so many versions of eveything.


DougP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top