Hello,
In VBA I'm trying to export 2 reports of my dbase as snapshots to a folder where users have access to.
The code I use:
DoCmd.OutputTo acOutputReport, "whatever", acFormatSNP, "T:\whatever.snp"
DoCmd.OutputTo acOutputReport, "whatever_1", acFormatSNP, "T:\whatever_1.snp"
The problem is that the second outputto never runs.
It only executes the first one, not the second.
However when I put this code in a button script it does work.
My problem is that I do not want to press a button to achieve this, the reports should automatically be saved as snapshots each time the dbase is run.
Has anyone have the same problem with docmd.outputto..>?
Any advise is welcome,
m0use
In VBA I'm trying to export 2 reports of my dbase as snapshots to a folder where users have access to.
The code I use:
DoCmd.OutputTo acOutputReport, "whatever", acFormatSNP, "T:\whatever.snp"
DoCmd.OutputTo acOutputReport, "whatever_1", acFormatSNP, "T:\whatever_1.snp"
The problem is that the second outputto never runs.
It only executes the first one, not the second.
However when I put this code in a button script it does work.
My problem is that I do not want to press a button to achieve this, the reports should automatically be saved as snapshots each time the dbase is run.
Has anyone have the same problem with docmd.outputto..>?
Any advise is welcome,
m0use