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
Multicast session fails to open on secondary site server.
Setting up my first database driven web site
PPTP VPN via Windows 2008 R2
How do I fix a calculation problem in Microsoft Visual 2008?
Excel Date Time format conversion yyyy-mmm-dd hh:mm:ss to mm/dd/yyyy hh:mm:ss
HTTP Error 404.3 on IIS 7.0
How can I convert a custom control that calls User32 and Shell32 to work on Mono?
Using Redemption with Late Binding
Inserting another drawing
Cron Error with 1 and 1 dedicated server - linux