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

Parameters and wildcards

Status
Not open for further replies.

sqw

Technical User
Mar 28, 2002
61
GB
Please can someone help I have a report and want to include a parameter field. I want to be able to type in the name of a customer like "Acme*" and for the parameter to get the result "Acme Ltd Company" or whatever the other part of the company name is.

Thanks
 
Create a string parameter {?Name} and then use a record selection formula like this:

{table.name} like {?Name}+"*"

The user would only need to type in "Acme" in this case (no asterisk). If you want to allow other words prior to the word entered into the parm, change it to:

{table.name} like "*"+{?Name}+"*"

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top