Skip to Content

How do I remove a string from my report?

I have a price list with all our house designs (field is named tblModels.Model) on it and the prices (e.g. design 1, design 2 and design 3). If I wanted to remove design 3 from the list how would I do that. I am thinking of a formula something like:

If tblModels.Model = "design 3" then delete.

But I am new to crystal reports and have no idea how to do it or the correct functions to use.

Any help would be appreciated.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jul 03, 2019 at 01:11 PM

    Go to Report, Selection Formula, Record

    and enter something like:

    tblModels.Model <> "design 3"

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 04, 2019 at 08:03 AM


    I think you are looking for the replace function.


    Replace (inputString, findString, replaceString)


    Replace(tblModels.Model,"design 3","") 

    The above example will find the string design 3 and replaces with empty values.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.