I have a form that asks the user for some report filters (Customer, Year). And I would like this filter form to be used on about 20 reports. I was hoping if someone can tell me if there is a way to allow the user to select the report to filter on. I am using the following code to execute the report filters and want to know if it is possible to have an unbound object linked to a list of reports and then use that parameter in the following code rather than the report name Reports![AccidentsPerJobTitle]
' Combine criteria strings into a WHERE claus for the filter
strFilter = "[ClientName] " & strClient & " AND [DateYear] " & strYear
' Apply the filter and switch it on
With Reports![AccidentsPerJobTitle]
.Filter = strFilter
.FilterOn = True
End With
Any help would be appreciated, thanks Lisa
' Combine criteria strings into a WHERE claus for the filter
strFilter = "[ClientName] " & strClient & " AND [DateYear] " & strYear
' Apply the filter and switch it on
With Reports![AccidentsPerJobTitle]
.Filter = strFilter
.FilterOn = True
End With
Any help would be appreciated, thanks Lisa