Hi,
Still a small problem. When I deploy the project and run it from the report server I don't see the default values.
Why is that?
Thankyou
Anat
Main Topics
Browse All TopicsIn reporting services I have a report with parameters.
one of the parameters is a select from list and when I run it I get <select a value> and this open the list and I select.
I don't want this line to appear and I want to have a default value .
How do I do this?
Anat
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: chrismcPosted on 2007-02-07 at 09:51:53ID: 18486928
In the report parameters screen (when in Data or Layout tab, click the 'Report' menu then 'Report Parameters'), you need to set the default there.
You'll see a 'Default Values' section.
You can hard code a default value - if this is to do with your previous question about Countries, you could put 0 in there to get '(All)'.
Alternatively, you can put a dynamic value in using VB.Net expressions, todays date for example;
=Today()
Then, the most powerful option is to default the data from a dataset. A common scenario is the current financial period date.
So the SQL query in the dataset may look something like;
Select StartDate From myFinancialPeriods Where GetDate() Between StartDate And EndDate
In the parameter properties, in the default values section, select 'From Query' then set the data set accordingly, then set the field to StartDate. That's it.
FYI: 'GetDate()' is a SQL function to get todays date and time.
Cheers
Chris