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

Parameter using * as a character

Status
Not open for further replies.
Oct 12, 2005
204
GB
Hi,
i have a report that pulls customer order details that need to be delivered by a specific date and this works well. what I have been asked to do is to add another parameter that breaks it down by part number, the issue is that the part numbers all begin with either F* or R* ( this is a string )

I created a selection formula like this:
{CUSTOMER_ORDER_LINE\.CATALOG_DESC} like {?Part} + "*"

But it still brings back all orders with parts beginning with either R or F whether there is a * in the name or not obviously it is treating the * in the part name as a wildcard.

My question is is it possible to achieve what I need to?

Regards,
Mick.
 
I think that by using the 'like' function CR will be treating the * as a wildcard. Try amending your selection formula to:

Code:
{CUSTOMER_ORDER_LINE\.CATALOG_DESC} startswith ({?Part} + "*")

Does this help?

Cheers
Pete
 
Pete,
Thanks for your reply, that looks like its done the trick, I'd never heard of the 'startswith' function.

Thanks again, much appreciated.

Mick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top