In Crystal 9 I have a formula (below) that searches the SO_Detail.PRTNUM_28 field and if it finds /SP or SP/ strips out those three characters. I need to expand the formula so that if it finds just SP it strips that out as well as the /SP and SP/. The formula also needs to not look at the first four characters of the SO_Detail.PRTNUM_28 field as I have some data that starts with SPA and BSP that I do not want stripped..
Thanks
Deb
if InStr ({SO_Detail.PRTNUM_28},'/SP' ) > 0
then
Mid({SO_Detail.PRTNUM_28},1,InStr ({SO_Detail.PRTNUM_28},'/SP' )-1)
else
if InStr ({SO_Detail.PRTNUM_28},'SP/' ) > 0
then
Mid({SO_Detail.PRTNUM_28},1,InStr ({SO_Detail.PRTNUM_28},'SP/' )-1)
else
{SO_Detail.PRTNUM_28}
Thanks
Deb
if InStr ({SO_Detail.PRTNUM_28},'/SP' ) > 0
then
Mid({SO_Detail.PRTNUM_28},1,InStr ({SO_Detail.PRTNUM_28},'/SP' )-1)
else
if InStr ({SO_Detail.PRTNUM_28},'SP/' ) > 0
then
Mid({SO_Detail.PRTNUM_28},1,InStr ({SO_Detail.PRTNUM_28},'SP/' )-1)
else
{SO_Detail.PRTNUM_28}