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

Splitting string by particular words

Status
Not open for further replies.

kwirky

MIS
Apr 22, 2010
85
AU
Hello,
I have a string which can vary in length and I need to split it so that it only shows particular data based on certain words.

Below is an example of the string.

Description
G100K5 4/0 660x920
100gsm Laserbond .
4 colour process both sides.
900 X 640.

MATCHED TO PROOF: this is a test of the PROOF wording

REPRINT: This is a test of the REPRINT wording

I want to show only the details if they are

MATCHED TO PROOF: this is a test of the PROOF wording

or

REPRINT: This is a test of the REPRINT wording

Sometimes neither of these two lines will be entered by the user, sometimes one or the other, or sometimes both.

I need to show any occurances of the above two lines only.

This is stored in a table called EstDescription.description.

I am using CR2008.

Thank you :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top