Hello,
Short version:
I'm trying to do a loop like the following:
Do While IsReportLoaded("rptReportName")
DoEvents
Loop
but after a docmd.outputto. Is there any way to check to see if docmd is still outputting a report before I start something else?
i.e:
Do While docmd.isStillWorkingOn("reportname")
do events
loop
---------------------------
Long version:
I'm not a vba guy - but was asked to see if i could figure out why we're intermittently getting the dreaded error 2486 "you cant do that now" error when running a routine that outputs about 20 reports in txt, snp, and html formats. After googling, I'm guessing it has something to do with the docmd still working on one output when another one starts?
Thus the question above.
Thanks for any suggestions!!!
Short version:
I'm trying to do a loop like the following:
Do While IsReportLoaded("rptReportName")
DoEvents
Loop
but after a docmd.outputto. Is there any way to check to see if docmd is still outputting a report before I start something else?
i.e:
Do While docmd.isStillWorkingOn("reportname")
do events
loop
---------------------------
Long version:
I'm not a vba guy - but was asked to see if i could figure out why we're intermittently getting the dreaded error 2486 "you cant do that now" error when running a routine that outputs about 20 reports in txt, snp, and html formats. After googling, I'm guessing it has something to do with the docmd still working on one output when another one starts?
Thus the question above.
Thanks for any suggestions!!!