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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exporting from Access to Outlook

Status
Not open for further replies.

pbisaillon

Technical User
Aug 18, 2003
7
CA
Hi, is it possible to export out of Access and have the .TXT file automatically attached to an Outlook email message? Below is the code that I have for the command button to have it export to a directory, but I would like to have it launch Outlook, and attach itself to an email.

Any tips would be great.

Private Sub Command42_Click()
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70

MsgBox Prompt:="This will export the Box Level Data to be imported into iRIMS. Please notify Patrick Bisaillon at 873-7231 so he can import the information into iRIMS.", Buttons:=vbOKOnly, Title:="Box Export"

DoCmd.TransferText acExportDelim, "QRY_GNWTBOXEXPORT Export Specification", "QRY_GNWTBOXEXPORT", "J:\Public Works and Services\Box Export Data\GNWTBOXEXPORT.TXT", False
End Sub


Thanks,
Patrick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top