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 RowSource
The report gets is data from "qryAuditHistor yList" and that is filtered, the graph is not. So I get a filtered data table, but the Graph always contains the entire dataset.
How can I filter the graph.. please and thank you. (I am not an experienced programmer.. so code would be appreciated)
Code:
strCriteria = strCriteria & " AND [Standard] = " & "'" & cboStandard & "'" DoCmd.OpenReport stDocName, acPreview, , strCriteria
Code:
SELECT qryAuditHistoryList.Year,
Sum(qryAuditHistoryList.[NCR-Count])
AS [Total NCR],
Sum(qryAuditHistoryList.[OFI-Count])
AS [Total OFI],
(Sum(qryAuditHistoryList.[OFI-Count])+
sum(qryAuditHistoryList.[NCR-Count]))/
Count(qryAuditHistoryList.AuditNum)
AS Average FROM qryAuditHistoryList
GROUP BY qryAuditHistoryList.Year;
How can I filter the graph.. please and thank you. (I am not an experienced programmer.. so code would be appreciated)
Comment