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

Ignoring Characters when entered by user in Parameter Field 1

Status
Not open for further replies.

telex2

IS-IT--Management
Oct 31, 2008
9
US
I am using Crystal v14. I have a parameter field that asks the user to enter an Item No. The db field that contains the item no they are requesting has stripped dashes from the numbers but many times the user enters dashes. Is there a way to tell the parameter field to ignore dashes entered by the user?
 
Not directly, but you could put the prompt in a formula and apply the replace function to it. i.e., replace({?prompt},"/",""), then use that formula to filter on i.e., {field} = {@someformula}
 
Thank You for your help kray4660 this worked (after I realized that I needed to use "-" instead of "/"...duh) Sometimes the devil is in the details :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top