I have a chart in my Access report. In my report, I need to add two items to show it on a graph.
Example: (This is what I have on the RowSource on my chart.)
SELECT [Year Sampled],[PV],[BPN],SUM([Composition#]) AS [Mica/Chlorite] FROM [qryMinerals] WHERE [Minerals] IN ('Mica','Chlorite')
Access indicates that, "You tried to execute a query that does not include the specified expression "Year Sampled" as part of an aggregate function.
Here's what I want to happen, to show how [PV], [BPN], and the sum of Mica & Chlorite (in y axis) in different years (Year Sampled on x axis).
Thank you in advance.
Example: (This is what I have on the RowSource on my chart.)
SELECT [Year Sampled],[PV],[BPN],SUM([Composition#]) AS [Mica/Chlorite] FROM [qryMinerals] WHERE [Minerals] IN ('Mica','Chlorite')
Access indicates that, "You tried to execute a query that does not include the specified expression "Year Sampled" as part of an aggregate function.
Here's what I want to happen, to show how [PV], [BPN], and the sum of Mica & Chlorite (in y axis) in different years (Year Sampled on x axis).
Thank you in advance.