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!

Suppressing item with "-" 1

Status
Not open for further replies.

lbizzell

Technical User
Apr 22, 2005
30
0
0
US
Hello again,

I'm running Crystal 9 with SQL. I am pulling data from {itemwhse.item}. The subassembly part has an "-" some where in the item and the item can be various lengths. How do I supress the subassembly parts with "-"?

Example:
L7050089
24005389-002
1930015
5011
C1550341-002

Results:
L7050089
1930015
5011

Thanks!
Laurie
 
You don't need to suppress them, you can eliminate them from the recordset returned by using:

Report->Selection Formulas->Record:

not({table.field} like "*-*")

-k
 
You can add the following to your record selection criteria

Code:
instr({table.field},"-") = 0

-LW
 
synapsevampire & kskid,

Thanks so much for your quick response. The formula worked great and I appreciate all the help. Crystal is starting to make more sense now, so I shouldn’t have to ask as many questions. Thanks again.

Thanks-
Laurie
 
The instr method won't pass the SQL to the database, use the LIKE method for better performance.

-k
 
You are right! Forgot to double check that.

A Star performance

-LW
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top