DataMiner
05-15-2002, 10:25 AM
Hi,
I need to print multiple forms automatically every morning; each form contains one or more MSgraph objects. The way I am currently doing this is:
docmd.openform MyForm1, acnormal
docmd.printout
docmd.close acForm,MyForm1,acsaveyes
docmd.openform Myform2,acnormal
docmd.printout
docmd.close acform,myform2,acsaveyes
etc. ....About 20 iterations of this.
Most of the time it works OK, but sometimes some of the printouts get skipped, or the docmd.printout seems to grab the wrong form for printing. Is there a more reliable way to do this? Something like Myform.printout?
I need to print multiple forms automatically every morning; each form contains one or more MSgraph objects. The way I am currently doing this is:
docmd.openform MyForm1, acnormal
docmd.printout
docmd.close acForm,MyForm1,acsaveyes
docmd.openform Myform2,acnormal
docmd.printout
docmd.close acform,myform2,acsaveyes
etc. ....About 20 iterations of this.
Most of the time it works OK, but sometimes some of the printouts get skipped, or the docmd.printout seems to grab the wrong form for printing. Is there a more reliable way to do this? Something like Myform.printout?