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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Issue, Can't get Dynamic Value

Status
Not open for further replies.

kyjoey

Technical User
Jun 6, 2005
23
US
Hey everyone,

I have an issue with a report being built in MS Reporting Services. I need the following statement to be dynamic for the date at the end, and I am not sure how to do so.

(SELECT SUM(TotAmount) FROM tblGiftData GROUP BY YEAR(OrderDate) HAVING (NOT (YEAR(OrderDate) IS NULL) AND YEAR(OrderDate) = 2006))

This cannot be a parameter because it will have to be generated for many different years. Any assistance would be great!

Thanks!

-Joey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top