G
Guest
My code below sends by output as .xls as 3 separate emails.
Is it possible to modify so that the 3 attachments are added to the one email?
Bruce
Function exportRecords()
On Error GoTo myErr
DoCmd.SendObject acTable, "Price", "MicrosoftExcel(*.xls)", "", "", "",
"Export - Price", "", True, ""
DoCmd.SendObject acTable, "Quote", "MicrosoftExcel(*.xls)", "", "", "",
"Export - Quote", "", True, ""
DoCmd.SendObject acTable, "tbl_PricelistHDR", "MicrosoftExcel(*.xls)",
"", "", "", "Export - Price List Header", "", True, ""
myErr:
End
End Function
Is it possible to modify so that the 3 attachments are added to the one email?
Bruce
Function exportRecords()
On Error GoTo myErr
DoCmd.SendObject acTable, "Price", "MicrosoftExcel(*.xls)", "", "", "",
"Export - Price", "", True, ""
DoCmd.SendObject acTable, "Quote", "MicrosoftExcel(*.xls)", "", "", "",
"Export - Quote", "", True, ""
DoCmd.SendObject acTable, "tbl_PricelistHDR", "MicrosoftExcel(*.xls)",
"", "", "", "Export - Price List Header", "", True, ""
myErr:
End
End Function