Hi
I have the following line of code that attaches a file to an email and allows you to send it.
DoCmd.SendObject acReport, "Activity2Weeks", "MicrosoftExcelBiff8(*.xls)", "", "emailaddresshere", "", "email subject", "email body text", True, ""
Problem is I want to append todays date onto the end of the filename, in this case "Activity2Weeks 13/08/2008". I forget the code used to do this, something like "& Format ("ddmmyyy") & " or similar I think?
Anyone help? Sure this is an easy fix for someone here.
I have the following line of code that attaches a file to an email and allows you to send it.
DoCmd.SendObject acReport, "Activity2Weeks", "MicrosoftExcelBiff8(*.xls)", "", "emailaddresshere", "", "email subject", "email body text", True, ""
Problem is I want to append todays date onto the end of the filename, in this case "Activity2Weeks 13/08/2008". I forget the code used to do this, something like "& Format ("ddmmyyy") & " or similar I think?
Anyone help? Sure this is an easy fix for someone here.