A real begineer
Registered User.
- Local time
- Today, 11:28
- Joined
- Nov 4, 2000
- Messages
- 74
Function DCHL()
stDocName = "rptDynamicChl"
I have the following code through my application, the save to A drive works well for the first five reports. The last report is 50 pages or more in length, and I receive an error. There is no mention of a limit on size in an XLS output to format on the help file. Is this caused by the format or is there some other aspect of the command I do not know?
The email attachemant part of the code ran fine for the first call, however, subsequent calls have failed to run this line. Should I seperate the email out to another function or is there an error in this code?
DoCmd.OutputTo acReport, stDocName, acFormatXLS, "A:\Temp", True
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "email here", , , "Month", "Here is the monthly data"
stDocName = "rptDynamicChl"
I have the following code through my application, the save to A drive works well for the first five reports. The last report is 50 pages or more in length, and I receive an error. There is no mention of a limit on size in an XLS output to format on the help file. Is this caused by the format or is there some other aspect of the command I do not know?
The email attachemant part of the code ran fine for the first call, however, subsequent calls have failed to run this line. Should I seperate the email out to another function or is there an error in this code?
DoCmd.OutputTo acReport, stDocName, acFormatXLS, "A:\Temp", True
DoCmd.SendObject acSendReport, stDocName, acFormatXLS, "email here", , , "Month", "Here is the monthly data"