I have some security descriptions that need some cosmetic work. Any suggestions on a more efficient setup to do the following?
If(InStr ({cot31203.Security},"DTD"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"DTD"
)-1) else
If(InStr ({cot31203.Security},"PASS THROUGH"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"PASS THROUGH"
)-1) else
If(InStr ({cot31203.Security},"NOTES"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"NOTES"
)-1) else
If(InStr ({cot31203.Security},"CORP"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"CORP"
)-1) else
If(InStr ({cot31203.Security},"INC"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"INC"
)-1) else
If(InStr ({cot31203.Security},"LTD"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"LTD"
)-1) else
If(InStr ({cot31203.Security}," &"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security}," &"
)-1) else
If(InStr ({cot31203.Security},"DEB"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"DEB"
)-1) else
If(InStr ({cot31203.Security},"COM"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},"COM"
)-1) else
If(InStr ({cot31203.Security},"("
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security},""
)-1) else
If(InStr ({cot31203.Security}," INC"
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security}," INC"
)-1) else
If(InStr ({cot31203.Security}," SER "
)<>0 then
Left({cot31203.Security},(InStr ({cot31203.Security}," SER "
)-1) else
{cot31203.Security}
TIA
If(InStr ({cot31203.Security},"DTD"

Left({cot31203.Security},(InStr ({cot31203.Security},"DTD"

If(InStr ({cot31203.Security},"PASS THROUGH"

Left({cot31203.Security},(InStr ({cot31203.Security},"PASS THROUGH"

If(InStr ({cot31203.Security},"NOTES"

Left({cot31203.Security},(InStr ({cot31203.Security},"NOTES"

If(InStr ({cot31203.Security},"CORP"

Left({cot31203.Security},(InStr ({cot31203.Security},"CORP"

If(InStr ({cot31203.Security},"INC"

Left({cot31203.Security},(InStr ({cot31203.Security},"INC"

If(InStr ({cot31203.Security},"LTD"

Left({cot31203.Security},(InStr ({cot31203.Security},"LTD"

If(InStr ({cot31203.Security}," &"

Left({cot31203.Security},(InStr ({cot31203.Security}," &"

If(InStr ({cot31203.Security},"DEB"

Left({cot31203.Security},(InStr ({cot31203.Security},"DEB"

If(InStr ({cot31203.Security},"COM"

Left({cot31203.Security},(InStr ({cot31203.Security},"COM"

If(InStr ({cot31203.Security},"("

Left({cot31203.Security},(InStr ({cot31203.Security},""

If(InStr ({cot31203.Security}," INC"

Left({cot31203.Security},(InStr ({cot31203.Security}," INC"

If(InStr ({cot31203.Security}," SER "

Left({cot31203.Security},(InStr ({cot31203.Security}," SER "

{cot31203.Security}
TIA