K
Kelly
I have a db system with an option to send a report as an Excel spreadsheet
attachment to an email; been working like a champ for the last few years. Our
office staff upgraded to MS Office 2007 and now an error message comes up at
that line and the command fails. Interestingly, just for fun I changed the
format variable from acFormatXLS to acFormatRTF and it worked just fine. Any
clues? Help is much appreciated.
The code:
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, strEmail, , ,
strSubjectLine, strMessage, True
The error message:
The format in which you are attempting to output the current object is not
available.
attachment to an email; been working like a champ for the last few years. Our
office staff upgraded to MS Office 2007 and now an error message comes up at
that line and the command fails. Interestingly, just for fun I changed the
format variable from acFormatXLS to acFormatRTF and it worked just fine. Any
clues? Help is much appreciated.
The code:
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, strEmail, , ,
strSubjectLine, strMessage, True
The error message:
The format in which you are attempting to output the current object is not
available.