Not providing basic technical information wastes time, you should include your software version, the database/connectivity being used, example data and expected output.
If a client is entering something into Crystal, then that means a parameter, which would make no sense because why enter it to then ignore it.
You probably mean that you have a field in a table that needs to be truncated AFTER the equal sign, so create a formula of:
left({table.field},instr({table.field},"="))
And use that in lieu of the field.
Please remember to use real technical terms and provide basic information in future posts.
If you do mean that they're going to enter something, please provide why they would enter it and then not display it. And if that is the case, use the above formula against the parameter.
The reason why the database is important to include is that you can likely use a SQL Expression (depending upon your software version, get the idea???) to have the database perform this function, which would prove faster.
The database is Providex. It's a proprietary database for MAS200 Accounting Software from Sage Software. The data is entered into the software and appears in Crystal version 8.5 as a string.
No it does not. However, the speed is not an issue. I do have another question. The formula you provided includes the "=". I would like to only show the string to the left of the "=".
Thanks so much. I altered it a bit. This is what I am using:
if left({SO_21LineItemExtDescriptions.ExtdDesc1},instr({SO_21LineItemExtDescriptions.ExtdDesc1},"=")) > ""
then
left({SO_21LineItemExtDescriptions.ExtdDesc1},instr({SO_21LineItemExtDescriptions.ExtdDesc1},"=")-1)
if instr({SO_21LineItemExtDescriptions.ExtdDesc1},"=") > 0 then
left({SO_21LineItemExtDescriptions.ExtdDesc1},instr({SO_21LineItemExtDescriptions.ExtdDesc1},"=")-1)
else
{SO_21LineItemExtDescriptions.ExtdDesc1}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.