I can create a button which opens report and filters the data using the 'Where' parameter of the DoCmd.OpenReport function:
example:
This works fine for text reports, but for charts the data is not filtered.
Is there any way to apply a filter to charts when opening the report from a button.
Many thanks Kris.
example:
Code:
Dim stDocName As String
Dim strWhere As String
strWhere = "[Date] Between #" & [start date] & "# And #" & [end date] &
"#"
stDocName = "Trend Analysis - Demographics v Service (Quality Report)"
DoCmd.OpenReport stDocName, ,, , strWhere
This works fine for text reports, but for charts the data is not filtered.
Is there any way to apply a filter to charts when opening the report from a button.
Many thanks Kris.