Thanks for the fast reply... ok about the code.
The query is filtered dynamically just before the report is called. I do refere to it, but the filter is not applied. Do I need to create a new query or even table, from the dynamic filtered query, then refer to that new query/table in rowsource?
User Profile
Collapse
-
MS Access Passing a Filter to a Graph using VBA
I use this code to build a filter to apply to the data (qry) in a report and it works great:
.. the report includes a Graph with the following RowSourceCode:strCriteria = strCriteria & " AND [Standard] = " & "'" & cboStandard & "'" DoCmd.OpenReport stDocName, acPreview, , strCriteria
...Code:SELECT qryAuditHistoryList.Year, Sum(qryAuditHistoryList.[NCR-Count])
Last edited by zmbd; Mar 20 '13, 01:11 PM. Reason: [Z{Please use the [CODE/] button to format posted code/html/sql - Please read the FAQ}{stepped the SQL}]
No activity results to display
Show More
Leave a comment: