Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

SendObject - Attachment

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
learning_codes@hotmail.com - 29 May 2008 23:23 GMT
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.
Rick Brandt - 30 May 2008 01:17 GMT
> Hi,
>
[quoted text clipped - 11 lines]
>
> 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.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

Pete D. - 30 May 2008 01:30 GMT
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.
>> Hi,
>>
[quoted text clipped - 19 lines]
> ill-advised.  Copying an Access file that is in use can result in a copy
> that is corrupted.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.