Print multiple forms or reports from one command?

Ms Kathy

Registered User.
Local time
Today, 05:43
Joined
May 15, 2013
Messages
190
I have forms that are printed based on a query parameter of [enter item number]. There are several of these forms that I would like to print at one time (with one command) making it easier for the user to gather their information at the beginning of the day. I also don't want to lose the ability to print them out individually as we do now. Can someone direct me to a link perhaps that addresses this? I can't seem to find anything when googling. Thank you!
 
It's not considered good practice to print forms although I think you mean reports.

I'm not a hundred percent sure about what you want as it's not quite clear. Please provide a simple example by way of explanation
 
I am printing forms rather than reports (they are not editable and used for viewing data). The "form" was just a vehicle to use to show the data (by query) of everything needed by the operator. Anyway, the forms are printed by, and different based on the, department to give them the information they need for their area. What I'd like to be able to do is have one command button that will print out all these various forms (all based on the item number they select); but I also don't want to lose the ability to print them individually.
 
Forgive me if I'm not explaining clearly. Shall I try again?
 
Well I think you could probably get it to work with forms if you really fancy a challenge however it would be much simpler with a report.
 
I respect that advice however I am not in a position to be able to change the forms to reports at this time.
 
May I ask how this can be a problem?

Well, it's not a problem, you will need to write some clever VBA to do it.

With a report, it should be a much simpler process as Reports are designed to handle this type of data.
 
I checked out that link and see that it is an easy process to change a form to a report; which I will look at doing for all the forms in the database (with the exception of those that really need to be a form). Anyway, I have just 2 questions:
- What happens to a form that it would come back to bite?
- How do I do what I want to do (print multiple reports, now) from a single command?
On that note I will exit to work on the forms/reports. Thank you.
 
You should endeavour to get all of the information into one query. Then have one report based on that query. The report can then print out groups which should match the information you are looking for.
 
Ok, so I'm working out of a backed-up database copy. I changed four of the forms to reports (by "saving as"). I question how to successfully print all these reports from one query since all of these "reports" are designed VERY differently. I have two of them attached for your reference. I'm unclear how to proceed . . .
 

Attachments

Checkout docmd.outputto method in the docs ...that lets you output .PDF. You can just list the whole bunch of them in some VBA, one after the other, and trigger that with a button.
 
Some guidance please . . . where do I find the docmd.output? How do I "list the whole bunch of them in some VBA? (Just a novice here.) Thank you!
 
Please also keep in mind that these reports are all based on a query that is asking for an Item Number.
 
You need to learn how to use the resources available - that will serve you much better than me holding your hand. All access functions and methods are described online. Now that is a clue there.

If your reports need parameters then you need to do docmd.openreport first where you can pass the parameter - look up the method. Then while the report is open, you can do docmd.outtputto, where it then will grab the open report with the parameters and output it.

Alternatively, you can rewrite the recordsource of the reports, so that that query incorporates the required parameter, and then you would not have to do the openreport first, because the report output via the docmd.outputto would have the right data. If all this makes no sense (yet) stick to the previous paragraph.

And all of these docmd statements can simply be written one after the other in a command button's On Click handler, so you can execute them by clicking that button. Google access command button.
 
Last edited:
If you didn't want to help, why not just say so from the git go?

I obviously don't have the knowledge and expertise that you do. And I have googled and looked at various other websites and links. I came here because I thought this site was a resource as well - where smart people can help out us "other" people. I certainly didn't mean for you to hold my hand.
 
I did not say that I do not want to help. But I will not retype stuff you can google yourself. I gave you enough clues, and all the access functions are in fact well-described, so no point in me retyping it. But anyhoo, I gave you the recipe, and now , if you do not panic but relax and think, you got enough info to be all right by yourself.
 

Users who are viewing this thread

Back
Top Bottom