Minty,
Your pointers to sdjames were really helpful to me. I'm a beginner myself.
I've created a form (ReportViewer) that has a listbox of the reports, populated using the code you provided above.
Intended Filter1: I've also created a date range that will act as a filter with the default from date set to DateSerial(Year(Date), Month(Date),1) and to date set to DateSerial(Year(Date), Month(Date)+1,0). I have a date field from my main table that is in all my reports that I will want to be between the from and to dates on my form (ReportViewer)
Intended Filter2: I've created a unbound combo box with the values of Ongoing or Complete which refers to a field in my main table that reports are generated from (The action is either ongoing or complete and will be the most common filter next to the date range)
I'd now like to create two buttons that generates the report selected in the list box, applying the date and ongoing/complete filter. One button will be for opening in access, the other for exporting to excel. I've tried playing with macros for this, but references the listbox instead of a specific report name throws me errors. What would be the best way to go about having these buttons work as intended? I've reached a bit of a wall on this one. It's starting to get more complex then the very simple database I have, but my bosses want more flexibility in filtering their reports.
Thanks for all your help!
Jeremy