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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pass parameter value between reports in a macro

Status
Not open for further replies.

Jensen

IS-IT--Management
Feb 10, 2002
3
AU
I have numerous reports all selected by period.

How can I run all reports from one macro and only enter the period once?
 
You won't be able to &quot;pass&quot; a parameter value; however, create a form with and text box linked to another small table with only one field, DATE_LOOKUP lets say, make sure the form doesn't allow addtions or deletions. Use the table in your report query criteria, i.e. [DATE_INVOICE]<[DATE_LOOKUP], make sure not to join the tables. OnClose or thru a command button w/ macro have the reports run based on that one value table. The same thing can be done completly with VBA, but this way is just as good.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top