Sendobject and attachment rename

B

Bruce

Below I am using sendobject command to send my table tbl_Price as an Excel
file.

This works exactly how I want except I need to rename my file so that it is
differentiated by the recipient.

Eg now the attachment is tbl_Price.xls but I want to rename to say
tbl_Price_v1.xls etc.

Any ideas,
Bruce


DoCmd.SendObject acTable, "tbl_Price", "MicrosoftExcel(*.xls)", "", "",
"", myVar & "Export - Price", "", True, ""
 

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