Groups | Blog | Home
all groups > sql server reporting services > november 2004 >

sql server reporting services : default date in a subscription



Penker
11/14/2004 5:23:01 AM
Hello! How can i put a default date in one of my parameters in a subsciption?
i.e : each day - i want 'today' date in the parameter....
Dejan Sarka
11/14/2004 6:02:47 PM
[quoted text, click to view]

Use the Today(), Now() or DateString() VB functions for the default value
expression, e.g.
=DateString()

--
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com

Penker
11/14/2004 11:11:07 PM
Hello!
I did try the functions you wrote - but it seems that i can not do that in a
subscription - only in the report parameter.
I want to be able to do that when i define a subscription...
Thanks Any Way and if you have other idea - i will be happy if you wrote back.
Thanks!

[quoted text, click to view]
Dejan Sarka
11/15/2004 4:31:35 PM
When you create a subscription, you have possibility to use the default
values of the report parameters (at the bottom of the "New Subscription"
page). So, just put the VB function in the expression for the default value
of the report parameter, and then use this default value in your
subscription.

--
Dejan Sarka, SQL Server MVP
Associate Mentor
www.SolidQualityLearning.com

[quoted text, click to view]

Ben Sullins
12/22/2004 9:33:05 AM
I tried this several ways to accomplish this and have been unsuccessful. From
what i've read it seems you must set the default params in reoprt designer.
Still having trouble on how to accomplish that. But once I do here is the
function I had planned on using, if you figure out how to set the default
param values in report designer please post. Thanks...

=datetime.today.adddays(-1) --ive tested this in a textbox and it works...

[quoted text, click to view]
AddThis Social Bookmark Button