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

Run same report with different parameters many times

Status
Not open for further replies.

Bennie47250

Programmer
Nov 8, 2001
515
US
Is it possible to have the same query or report run many times over and the query or report would get the parameter information from a table? So if there are 10 different parameters in a table, the query/report would run 10 times. (some folks call this bursting) If yes, how?

I’m thinking that I could write a macro and each time the query or repot is generated, send it out via e-mail using the SendObject action.

Thanks
Bennie
 
basically, I'd create a recordset (or array) that contained my 'where' clause for each report

Open Recordset
do while rst.eof=false
docmd.openreport "MyREport",,rst!WhereString
'send the report, save it, whatever
docmd.close acreport "MyReport"
rst.movenext
loop


I used a simlar thing to automatically create an excel sheet with 50+ tabs by using export commands rather than report opening.

SeeThru
Synergy Connections Ltd - Telemarketing Services

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top