SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 SSRS datetime parameter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

NoamGr
Starting Member

8 Posts

Posted - 06/17/2014 :  08:38:07  Show Profile  Reply with Quote
How I can restrict a parameter to yesterday ?

James K
Flowing Fount of Yak Knowledge

3707 Posts

Posted - 06/17/2014 :  14:36:17  Show Profile  Reply with Quote
Make the parameter Internal (on the General tab of parameter properties) so the user cannot change it, and give it a default value of =DATEADD("d",-1,Today())
Go to Top of Page

NoamGr
Starting Member

8 Posts

Posted - 06/18/2014 :  03:12:28  Show Profile  Reply with Quote
the user chooses the parameter value. but I need it in specific format and with restricted values range.
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3707 Posts

Posted - 06/18/2014 :  07:45:14  Show Profile  Reply with Quote
Specify the value you want the user to select in the Available Values tab. If there is only one value to choose from, what is the point in making the user choose?
Go to Top of Page

NoamGr
Starting Member

8 Posts

Posted - 06/19/2014 :  03:25:01  Show Profile  Reply with Quote
maybe I didn't explain good.
I means upto yesterday.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000