Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Limit Graph Result to Past 12 Months 1

Status
Not open for further replies.

uncleG

Technical User
Jun 10, 2004
63
US
I am using the following Code to generate a Graph on a Form.

TRANSFORM Sum([AvgScore]) AS [SumOfAvgScore] SELECT (Format([EvalDate],"MMM 'YY")) FROM [tblSuppScores] GROUP BY (Year([EvalDate])*12 + Month([EvalDate])-1),(Format([EvalDate],"MMM 'YY")) PIVOT [scConID];

What must I change to limit the display period to the past 12 months only?

Thanks, Uncle G
 
FROM [tblSuppScores]
WHERE [EvalDate] >= DateAdd ( "m", -12, Date() )
GROUP BY ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top