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

Macros and prompts

Status
Not open for further replies.

maldocad

Technical User
Aug 1, 2003
1
CA
I have 7 independent reports that use the same information from the prompts.

I wrote a Macro to obtain the information and try to run the seven reports without inputing the information over.

How could I transfer the variables from my macro to the prompt manager??

 
You would want to create a for loop in your macro and then execute the line:
Set ImpRep = ImpApp.OpenReport (ImpRepPath & ImpDoc & ".imr", Prompt1)
Using this, you would only have to enter the Prompt1 information one time, and can send it to the report as many times as you need to (the number of reports you have). If you have further questions, post them and I'll try to help out.

Chad
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top