using a filter for output....

SamDeMan

Registered User.
Local time
Today, 15:54
Joined
Aug 22, 2005
Messages
182
Hi

I am modifying an existing report. basically, i have data for multiple dates for multiple facilities in temporary tables. I then ouput a report to word/excel files. I would like to add a filter to a report. I am using the docmd.output to export the reports. the following is what i have been thinking would work, but i am looking for ideas.

1. open the report in design view - docmd.openreport, modify the recordsource, and save it. first of all i am not sure how to do it, and also i think i might get a message that you can modify a report when another user is logged in (even though i don't anticipate having other users use this database).

2. some how use the open event and have a global variable to set criteria. not sure how to this, and i am not sure it will work.

your help is much appreciated it.

thanks,

sam
 
Why not use parameters in the source query as your filter criteria?

Are you trying to export a batch of these Excel files without user input or something?
 

Users who are viewing this thread

Back
Top Bottom