I have used Stephen Labens ReportToPDF function successfully many times, but only to create single files. This time I needed to loop through a list of report names (10). The strange thing is I always get the first file and then a message saying “Output To is not available now” and it hangs in the ReportToPDF function. If I step through the code once and then run it I get all 10, or if I step through once, stop the run and then trigger it again from the command button it prints all 10. But If I run from the button immediately after it fails again giving me only one report.
Does this ring any bells?