W
Wozza
I have a Report in Access 2003 which has a subreport. In the report I want to
dynamically determine a filter for the subreport.
When setting the filter and the FilterOn properties, I get the error above.
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
Dim subReportFilter as String
subreportFilter = "... some value"
Reports![_RPT_ServiceDiscoveryDatabase]![_RPT_ServiceDiscoveryDatabase_New].Report.filter = subReportFilter
Reports![_RPT_ServiceDiscoveryDatabase]![_RPT_ServiceDiscoveryDatabase_New].Report.FilterOn = True
End Sub
The error I get is "The setting you entered isn't valid for this property"
How can I filter the subreport.
dynamically determine a filter for the subreport.
When setting the filter and the FilterOn properties, I get the error above.
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
Dim subReportFilter as String
subreportFilter = "... some value"
Reports![_RPT_ServiceDiscoveryDatabase]![_RPT_ServiceDiscoveryDatabase_New].Report.filter = subReportFilter
Reports![_RPT_ServiceDiscoveryDatabase]![_RPT_ServiceDiscoveryDatabase_New].Report.FilterOn = True
End Sub
The error I get is "The setting you entered isn't valid for this property"
How can I filter the subreport.