Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print Three Forms with one Control. 1

Status
Not open for further replies.

egptech

Technical User
Nov 18, 2002
16
US
I have three reports that I print out after each piece of equipment is set up. All three reports are based on the same qry. I am just starting to learn some VBA and was wondering if there is a way to create one control that will run all three reports with the option of viewing them then printing them. I am open to suggestions and very grateful for any assistance.
Gene
 
Gene
I assume you are doing this from a form.

In your form, put a Command Button, but don't use the wizard.

Enter the following code in the Click property for the command button...
DoCmd.OpenReport "Report1Name", acViewPreview
DoCmd.OpenReport "Report2Name", acViewPreview
DoCmd.OpenReport "Report2Name", acViewPreview

All 3 reports will pull up. You can view them one at a time by minimizing the one that is on top, print the one that is in view at the moment, whatever.

Tom
 
Thanks,

It was another case of looking so hard for the difficult answer that I totally overlooked the easy one.

Thanks again,
Gene
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top