Re: Filter chart

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can "hard-code" parameters from your form controls into your row
sources. Otherwise, you might be able to dynamically build and apply a SQL
statement to the Row Source property of charts in the On Open event of your
report.

--
Duane Hookom
MS Access MVP

"Paco" <paco6945@xxxxxxxxxxxxxxx> wrote in message
news:F5C9C34F-C4B1-4C3E-9B6E-92BA2BC77940@xxxxxxxxxxxxxxxx
I have a form that serves as a printing and filtering menu. There are
numerous reports and charts that all use different filters. For a chart, I
base the chart data rowsource on a query. (e.g., Select x, y from
qryDataSource). I can edit the underlying query to get the results I want,
but I haven't been able to figure out how to apply the filter in code
using

DoCmd.OpenReport .Column(0, varitem), strReportFilter

with .column () being the report name in a list box and strReportFilter
being the WHERE clause.

However, the filter does not limit the records in the underlying query.

Thanks for any suggestions.

Paco


.



Relevant Pages

  • Linking a pivot table filter to a control cell
    ... I have a report with 10 different pivot table charts - each has the same ... filter which I have to change when I am looking at a diferent sector. ...
    (microsoft.public.excel.misc)
  • Re: Filter a report on a calculated field in that report
    ... SHIPP wrote: ... >not contained in the underlying query. ... >report based on a calculation contained in the report? ... No way to filter the report's data based on values that are ...
    (microsoft.public.access.reports)
  • Jet Database does not recognize Forms............................
    ... I have a REPORT created from a query statement that produces two CHARTS. ... underlying query has a maximum of 120 fields of data. ...
    (microsoft.public.access.reports)
  • Re: multiple reports from single query
    ... > you can filter the report at runtime by adding a WHERE clause to a ... > OpenReport action in a macro or VBA procedure. ... >> Is it possible to have 3 reports from one underlying query, ... >> the report fields VALUE has a different criteria - for example ...
    (microsoft.public.access.reports)
  • Re: Filter a report on a calculated field in that report
    ... >>I have a report that has a very complicated calculation. ... >>not contained in the underlying query. ... > No way to filter the report's data based on values that are ...
    (microsoft.public.access.reports)