Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
NoamGr
Starting Member
12 Posts |
Posted - 2014-06-17 : 08:38:07
|
How I can restrict a parameter to yesterday ? |
|
James K
Master Smack Fu Yak Hacker
3873 Posts |
Posted - 2014-06-17 : 14:36:17
|
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()) |
|
|
NoamGr
Starting Member
12 Posts |
Posted - 2014-06-18 : 03:12:28
|
the user chooses the parameter value. but I need it in specific format and with restricted values range. |
|
|
James K
Master Smack Fu Yak Hacker
3873 Posts |
Posted - 2014-06-18 : 07:45:14
|
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? |
|
|
NoamGr
Starting Member
12 Posts |
Posted - 2014-06-19 : 03:25:01
|
maybe I didn't explain good.I means upto yesterday. |
|
|
|
|
|