Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Parameter in SSRS 1

Status
Not open for further replies.

charbrad

Technical User
Nov 7, 2002
132
US
I have set up date parameters in SSRS 2005 that are not working. Under reports I click report parameters and enter the following criteria:
Code:
Properties:
Name BeginDate
Data Type:  DateTime
Prompt:  BeginDate

Allow blank value is checked.

Available Values = Non-queried
Default values = Null

I have done the same for EndDate.

When the user enters the date criteria it bring ups the entire report instead of the specific date range. Is there somewhere else I need to enter this parameter info?
 
Yes. You can either create a generic query for your dataset to return all rows, and then put a filter on your Table or whatever display object you are using. Or, you can create a parameter in your source query for your dataset.
 
I am fairly new to SSRS could you explain how I would create a parameter in my source query for my dataset?
 
What type of source database are you pulling from? SQL Server? Access? Oracle? DB2? etc
 
The source query would look something like the following:

Code:
select * from SomeTable where SomeDateColumn = @SomeParameterName

Then if you click the "Parameters" tab in your DataSet editor, you can map the @SomeParameterName parameter to your report's parameter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top