Runtime 2010 problem

rickbanny

New member
Local time
Today, 16:09
Joined
Jul 13, 2016
Messages
3
Hi Guys

Got a problem with some code running in Access 2010 Runtime. This code runs fine when full-blown Access is installed but fails with a runtime error and closed the database when fired off in Runtime 2010.

Any Ideas?

PHP:
DoCmd.OutputTo acOutputReport, "Report_Name", "Excel97-Excel2003Workbook(*.xls)", "\\filepath" & ".xls", False, "", , acExportQualityPrint
 
Some commands are not available in runtime.
Do you run commands at start?
It could be that output statement. Try transferSpreadsheet.
 
Some commands are not available in runtime.
Do you run commands at start?
It could be that output statement. Try transferSpreadsheet.

Hi

Tried transferSpreadsheet but that fails as well with te same error - no commands are run at start.

Cheers
 
DoCmd.OutputTo acOutputReport, "Report_Name", acFormatXLS, filepath & ".xls"
 
Pu an on error handler in and capture the error, then you will see what the runtime doesn't like.
 

Users who are viewing this thread

Back
Top Bottom