Dave,
Try this formula:
LEFT ( {Part.PartDescription}, INSTR ({Part.PartDescription}, '(' ) -
2 )
It gets a little confusing with all the parentheses, but here's the gist of
what's going on:
LEFT is a function that returns the first X number of characters from a
string (the left-most characters). It takes two parameters: the text you
want to copy from and the number of characters to return. You know what
text you want it to copy from but the number of characters will change from
part to part, so you need to use another function to get that number.
INSTR is a function that tells you the location of a character (or
characters) within a larger set of text. It also takes two parameters: the
text you want to search and the text you are looking for. This tells us how
far into the Part Description the left parenthesis is found, but that number
is too far for what you want so you subtract 2 from that answer which
removes the parenthesis and the space before it.
I hope this made sense.
Good luck!
================
Steve Sanders
Delta Centrifugal Corp.
-----Original Message-----
From: Cole, Dave [mailto:
dave@...]
Sent: Tuesday, May 01, 2001 1:01 PM
To: eManfacturing Yahoo Groups (E-mail)
Subject: [Vantage] Crystal Reports.
Hi,
I need some help with Crystal Reports.
In the Part Master we use the Part Number field for out part number and
the
Description field for the Customer Part number.
For example:
Part: 2400-055
Description: L47746P01 (Shaft, Aft, - Low Pressure Turbine Rotor)
All our parts are entered this way. I would like to be able to extract
just
the first part of the description up to but not including the "(" to print
on some labels.
Thanks,
Dave Cole
Reeder & Kline
[Non-text portions of this message have been removed]
Yahoo! Groups Sponsor
To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please go to:
http://groups.yahoo.com/group/vantage/files/. Note: You must have already
linked your email address to a yahoo id to enable access.
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[Non-text portions of this message have been removed]