Hello there.
Access 2000.
stdocname = "CustomerWorkOrderRpt.XLS"
DoCmd.OutputTo acReport, "CustomerWorkOrderRpt", acFormatXLS, stdocname, True
Works, but Access closes, or crashes, immediately after creating the XLS spreadsheet.
I have tried AcFormatHTML, AcFormatSNP, acFormatRTF and all files are created from this report (I would perfer the RTF and SNP format). No matter what format the output is chosen, when I try to outputto acreport, my Access crashes.
When I use this function with a Query, such as with:
DoCmd.OutputTo acOutputQuery, "temp", acFormatXLS, NewFileName, True
I have no problems. It works perfect and Access continues to work. Its the acReport output option that is killing me. If I wanted to exit Access extreamly quickly I would use this function!
Access 2000, at times, drives me crazy.
Access 2000.
stdocname = "CustomerWorkOrderRpt.XLS"
DoCmd.OutputTo acReport, "CustomerWorkOrderRpt", acFormatXLS, stdocname, True
Works, but Access closes, or crashes, immediately after creating the XLS spreadsheet.
I have tried AcFormatHTML, AcFormatSNP, acFormatRTF and all files are created from this report (I would perfer the RTF and SNP format). No matter what format the output is chosen, when I try to outputto acreport, my Access crashes.
When I use this function with a Query, such as with:
DoCmd.OutputTo acOutputQuery, "temp", acFormatXLS, NewFileName, True
I have no problems. It works perfect and Access continues to work. Its the acReport output option that is killing me. If I wanted to exit Access extreamly quickly I would use this function!
Access 2000, at times, drives me crazy.