Crystal 8 - SQL Server/SQL Database.
In my report I have a column call "category" and the data returned looks like the below:
Solution Category
How to fix a HP Laser 1-55-156
How to fix a HP DotM 1-55-156
How to fix a modem 1-55-167-293
What I tried to do was create a Formula Field to convert those numbers into a text value using this:
if {INDEX.RELATIONAL_ID} like '*-55*' then 'SDT' else
if {INDEX.RELATIONAL_ID} like '*-156*' then '>Printer' else
if {INDEX.RELATIONAL_ID} like '*-167*' then '>Modem' else
if {INDEX.RELATIONAL_ID} like '*-188*' then '>Scanner' else
etc. etc.
This is only half working, the new column is only converting the first number it finds, the -55 as shown below, when I was hoping it would return SDT>Printer or SDT>Modem>Motorola.
Solution Category Convert
How to fix a printer 1-55-156 SDT
How to fix a HP DotM 1-55-156 SDT
How to fix a modem 1-55-157 SDT
In my report I have a column call "category" and the data returned looks like the below:
Solution Category
How to fix a HP Laser 1-55-156
How to fix a HP DotM 1-55-156
How to fix a modem 1-55-167-293
What I tried to do was create a Formula Field to convert those numbers into a text value using this:
if {INDEX.RELATIONAL_ID} like '*-55*' then 'SDT' else
if {INDEX.RELATIONAL_ID} like '*-156*' then '>Printer' else
if {INDEX.RELATIONAL_ID} like '*-167*' then '>Modem' else
if {INDEX.RELATIONAL_ID} like '*-188*' then '>Scanner' else
etc. etc.
This is only half working, the new column is only converting the first number it finds, the -55 as shown below, when I was hoping it would return SDT>Printer or SDT>Modem>Motorola.
Solution Category Convert
How to fix a printer 1-55-156 SDT
How to fix a HP DotM 1-55-156 SDT
How to fix a modem 1-55-157 SDT