Solved

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

Posted on 2009-07-16
5
697 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
PL/SQL can be a very powerful tool for working directly with database tables. Being able to loop will allow you to perform more complex operations, but can be a little tricky to write correctly. This article will provide examples of basic loops alon…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

813 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

14 Experts available now in Live!

Get 1:1 Help Now