Solved Attache files from main form to Outlook (1 Viewer)

theinviter

Registered User.
Local time
Today, 06:08
Joined
Aug 14, 2014
Messages
268
Dears:
Kind support.
is there a way to attach the Form present in main form from current record to outlook on button click.
as I want upon button click any attached files in current record go to outlook email.
File attached, kind support on how to do this.
 

Attachments

Before providing any advice, which version of Outlook are you using? Outlook Classic is different than the New outlook.
 
Can't look at your file right now, but are you really trying to attach a Form to an email, or are we talking about files in an attachment field?
 
Yes, this is about an Attachment type field.
This is a common topic.
Attaching file from Attachment field to an email requires first extracting file to folder location then attaching to email using Outlook automation. You already have Outlook code so now incorporate following https://learn.microsoft.com/en-us/o...tabase-reference/field2-savetofile-method-dao along with objMail.Attachments.Add method https://stackoverflow.com/questions/26184217/attach-multiple-files-or-entire-directory-to-email. Code can then delete entire folder or files from folder with Kill method.

Really need to give buttons meaningful names instead of keeping names assigned by Access.
 
Last edited:
HI:
what if i want to place the button in Report and upon click do the same for attachment (attach to email) how to do it?
Reports are usually used for printing, so the button won't work when printed or in print preview. It could work only in Report View.
 
Reports are usually used for printing, so the button won't work when printed or in print preview. It could work only in Report View.
Yes its in report view but when copied the code got error: " Syntax error" If Me.Recordset.Fields(Me.Sigend_Form.AttachmentCount > 0 Then
 
Where is that code supposed to be? I don't find it in posted db. Code makes no sense anyway.



Should Sigend_Form really be spelled Signed_Form?
 
Last edited:

Users who are viewing this thread

Back
Top Bottom