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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameter Search for wildcard values of specified field

Status
Not open for further replies.

IceRuby

Technical User
Jan 20, 2004
85
AU
Hello
Using Crystal reports V9.0.
I need to setup a parameter to allow users to select the initial string of value they are looking for and then apply a wild card.
e.g. All users are setup with an identifier of RH followed by their location RHDV or RHHM etc. There are multiple resources for each team, therefore would like to list all resources commencing with RHHM* or RHDV*.
Prefer not to have to hard code as additional teams could come on board etc.
Thanks in advance
 
First, Create a string parameter {?SearchString}

Second, Create a formula {@SearchString}:
{?SearchString}&"*"

Last, in Record Selection put :
{Table.Field} like {@SearchString}

replacing the item in bold with your real field...


Reebo
UK

Please Note - Due to current economic forcast and budget constraints, the light at the end of the tunnel has been switched off. Thank you for your cooperation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top