Hi,
Am having a bit of trouble setting a filter on a subreport. I set up a filter string elsewhere and store in a variable and then use the following on the main report: (which works fine)
What I can't do is use the same on the subreport :
Getting a "The setting you entered isn't valid for this property" error.
It works if I open the subreport on it's own but not under the main report... any thoughts anyone??
I can't seem to set the property via :
either .....
----------------
Shaun McLean
Am having a bit of trouble setting a filter on a subreport. I set up a filter string elsewhere and store in a variable and then use the following on the main report: (which works fine)
Code:
Private Sub Report_Open(Cancel As Integer)
Me.Filter = varSummaryMainFilter
Me.FilterOn = True
End Sub
What I can't do is use the same on the subreport :
Code:
Private Sub Report_Open(Cancel As Integer)
Me.Filter = varSummarySubFilter
Me.FilterOn = True
End Sub
Getting a "The setting you entered isn't valid for this property" error.
It works if I open the subreport on it's own but not under the main report... any thoughts anyone??
I can't seem to set the property via :
Code:
Me.subReport.filter = varSummarySubFilter
either .....
----------------
Shaun McLean