Solved

How can I set a report parameter to default to a wildcard in SSRS05?

Posted on 2009-07-16
5
664 Views
Last Modified: 2012-05-07
I have a report that I need to have a default wildcard setting in report parameters. I need this parameter to also be manually kyed to filter the data further as needed by the user. The default wildcard would produce the data the user needs to pick more specific filter.
0
Comment
Question by:mmentele
  • 2
  • 2
5 Comments
 
LVL 8

Expert Comment

by:Hadush
ID: 24872102
Does your parameter default wild card just '%' or can you be more specific with examples of parameters you want to pass?
 
0
 
LVL 9

Accepted Solution

by:
Hwkranger earned 250 total points
ID: 24872142
You can use a BIT flag (A check box) and then when the user selects it, concatonate a '%' sign to the string.   You'll have to use  the LIKE clause instead of "="



0
 

Author Comment

by:mmentele
ID: 24872228
I have found setting '%' does not work, no data is returned. I will try to be more specific. This report looks at inventory transactions for specific part numbers. I have 4 report parameters; StartDate, EndDate, partID and my new one TraceID. The users can enter a start, end and part# and retrieve data including the TraceID. My user wants to be able to then filter the report further by being able to type in a specific TraceID. I have the report breaking down into sections by sorting by TraceID so I dont get why they want this, but none the less this is the assigned task :-/

Does this help?
0
 
LVL 8

Assisted Solution

by:Hadush
Hadush earned 250 total points
ID: 24872558
Like Hwkranger said change your query to  LIKE ('%TraceID%') and will give the results what ever they want. For example,  when ever they type lats say "A" it will bring all TraceID which contain "A"
 

Where TraceID LIKE ('%TraceID%')

Open in new window

0
 

Author Closing Comment

by:mmentele
ID: 31604354
I ended up changing direction as the needs changed
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Hi, I have heard from my friends that it’s not possible to create Label Printing report using SSRS. I am amazed after hearing this words not possible in SSRS. I googled lot and found that it is possible to some of people know about the Report Bui…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
This video discusses moving either the default database or any database to a new volume.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now