Microsoft
Software
Hardware
Network
Question : Default parameter to max date
Hi, Is it possible to default a parameter to the max date? I tried doing this in the parameter's default values, specify values expression box, but it didn't work. I got the error aggregate and lookup functions cannot be used in report parameter expressions.
=max(Parameters!Run_Dt.Val
ue)
My dataset is this -
select distinct run_dt from tbl_A
Answer : Default parameter to max date
Add a 2nd dataset. Your query will be select max(run_dt) from tbl_A . Then in your parameter under default choose get values from a query. You can then choose this dataset and the field which is the max date.
Random Solutions
Restarting Footnote numbering in a lenghy completed document
How can i fill 1D array from 2D array and how can i sort 1D array?
Script to automatically delete files older than 1 month Windows NT server
How to get an USB speaker to work with Eee PC 900 Xandros Linux
Windows Update site fails to load
Disable Shortcut Keys in axwindowsmediaplayer1 (media player)
Speeding up a simple UPDATE in Oracle SQL
OutlookAnywhere for Exchange 2007 - client keeps asking for credentials
Auto fill user name in "Login" field
Incremental search listbox w/ SQL Server w/ ability to append records to the serached table