Exporting Report

momoko

Registered User.
Local time
Today, 16:57
Joined
Oct 7, 2001
Messages
41
Hi,
I've quite a number of report that i'll output daily. Instead of coding it one by one in VB, how can I maintain a table on the report name and output them according to what has been added to the table?
 
Create a recordset on the table and loop through it
Code:
dim strsql as string
dim rst as recordset

strsql="Select reportname from reports"
set rst = currentdb.openrecordset(strsql)

do while not rst.eof
   docmd.openreport rst.fields(0), acNormal 'Print directly
loop
Typed, not tested
 

Users who are viewing this thread

Back
Top Bottom