Sending multiple attachments via Outlook from a table

King Kreglo

Registered User.
Local time
Yesterday, 16:53
Joined
Aug 31, 2013
Messages
32
I have a report/quote where the users have a few option boxes to choose from and if they are selected, I want them to include those attachments when the email toggle button has been pressed, it sends the quote with the other selected documents included as well.

Here is the code that I am using to email the quote so far:

Code:
Private Sub tglEmail_Click()
     
DoCmd.SendObject acSendReport, , acFormatPDF, [Email Address], , , "Budgetary Pricing for" & " " & [Full Name], "Attached is a copy of your quote", True

End Sub

The attachments are stored in a separate table (tblattachments).
My thought is to have temporary variables that turn on when a document has been selected. Example: If([tempvars]![Document1]=2) Then add.attachment.

I've tried a few methods I have found on this site but they all chose attachments from files stored on their computer rather than already in the database.

Is what I'm trying to do possible and is there anyone that can point me in the right direction?
 

Attachments

  • tblAttachments.png
    tblAttachments.png
    5.1 KB · Views: 144
  • Toggle Buttons.png
    Toggle Buttons.png
    3 KB · Views: 117

Users who are viewing this thread

Back
Top Bottom