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

SQL Reporting Servies

Status
Not open for further replies.

Ucaihc

Programmer
Aug 2, 2006
35
US
I am creating quarterly report using SQL Reporting Services and I am trying to display the start date of the previous quarter in a text box using the following expression:

=DATEADD(qq, DATEDIFF(qq,0,getdate())-1, 0), 100).

However, I get an error.

When I use this expression in a SQL server query, it returns the right date. Can you tell me why the expression is not working in a report?
 
See if the current date is available in the Globals collection. Use that instead of getdate() in your function.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top