K
KarenY
Hi,
We have customers input orders themselves through internet. Our order field
accepts anything the user input.
Some of the orders using * prefix, e.g. *-DXB12345.
How do i replace a * by using IIF or other function in a select query ?
I just want to replace the * for letters "HP" and the rest after the *
remain the same after HP, e.g. *-DXB12345 will become HP-DXB12345
OR *-DXB12345SCRAP will become HP-DXB12345SCRAP.
The order number field name is CO.
I have tried : IIF(Left([CO],1)="*","HP & Right([CO],14)="*"",[CO])
It returned as "error" and I tried some others, also not working.
Please help.
We have customers input orders themselves through internet. Our order field
accepts anything the user input.
Some of the orders using * prefix, e.g. *-DXB12345.
How do i replace a * by using IIF or other function in a select query ?
I just want to replace the * for letters "HP" and the rest after the *
remain the same after HP, e.g. *-DXB12345 will become HP-DXB12345
OR *-DXB12345SCRAP will become HP-DXB12345SCRAP.
The order number field name is CO.
I have tried : IIF(Left([CO],1)="*","HP & Right([CO],14)="*"",[CO])
It returned as "error" and I tried some others, also not working.
Please help.