Question : Creating a Report from Filtered Records

Access 2000 & SQL Server 7

What I would like to be able to do is this:
1) Create a Report format and save it
2) Using a Form find a subset of records using Filter by From.
3) Run the report created in step 1 against the record subset created by step 2.

I feel this should be possible, but I cant see how to do it.

Thank you

Answer : Creating a Report from Filtered Records

1) Create your report
2) Create your form
3) Place a print(preview) button using the wizard.
4) Add stCriteria field like the wizard creates for forms.
5) Add:
if len(me.filter) > 0 then
stCriteria = me.filter
endif
docmd.openreport "...", , ,stCriteria (as WHERE parameter)

Clear ?

Nic;o)
Random Solutions  
 
programming4us programming4us