SendObject - Attachment

L

learning_codes

Hi,

I want to know if there is a way to copy the mde and make an
attachment to send.

Docmd.SendObject
acTable,"Table1","MicrosoftExcelBiff8(*.xls)","email@hotmail","","","Subject","Body
Text",True,""

I want to replace acTable to Access Database to send a message with an
attachment (Access Database *.mde).

Your help would be much appreciated.

Thanks.
 
R

Rick Brandt

Hi,

I want to know if there is a way to copy the mde and make an
attachment to send.

Docmd.SendObject
acTable,"Table1","MicrosoftExcelBiff8(*.xls)","email@hotmail","","","Subject","Body
Text",True,""

I want to replace acTable to Access Database to send a message with an
attachment (Access Database *.mde).

Your help would be much appreciated.

Thanks.

Not possible with SendObject. You would have to use OLE Automation against
an external messaging library like Outlook or CDO.

Even when doing that if you want the attachment to be a copy of the same
file that is running the code, then it is either not possible or at least
ill-advised. Copying an Access file that is in use can result in a copy
that is corrupted.
 
P

Pete D.

Curious, why not just send the changes, tables instead of a whole datafile?
Seems like a large waste of bandwidth unless your sending like a catalog of
products. In that case move to your email program and have it send the
file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top