Macro for Multiple Reports

DFeil

Registered User.
Local time
Today, 11:08
Joined
Oct 2, 2012
Messages
32
I have created a macro that will open six reports. Each report gives a prompt for definition criteria, such as First Name? and Last Name? How do I get it so when I run the macro, I only have to enter the defining info only once, instead of six times individually?:)
 
Have the user enter the criteria on a form, and have each query/report get the value from there. Most of us use forms to gather user input; you have much more control that way.
 
I think I understand, for an example I would have to create a form will all my employees First and Last Names. How do you get the query to check the form for the info? Thank you for your help.
 
Instead of:

[Enter name]

in the criteria, you'd have:

Forms!FormName.TextboxName

You can use the Build feature in the criteria to build the path for you.
 
No problem, and welcome to the site by the way!
 
Ya, that didn't work for me. I was able to create an expression in each query to combine the first and last names, so the criteria only asks for the full name now, instead of two different criteria boxes. Each query/report only asks for one criteria each now. But I still can't figure out how to Choose a name from a drop box, to run all querys when I run the macro.
 
It should work fine, provided the combo returns a value consistent with what the query is looking for. Can you post the db with that effort?
 
Its about 20mb in size, I will send you a dropbox link to it. Thank you again for your help.
 
There used to be a link here, I removed it.
 
Last edited:
Glad you got it sorted. The link didn't work for me, and I got busy and forgot to post that here. Sorry about that. :banghead:
 

Users who are viewing this thread

Back
Top Bottom