Hi
I'm trying to creat a field that picks up only the characters to the left of either "-" or "/" in the string. The number of characters to return can vary. eg the field [billref] can be 1234567-001 or 1234567/abc-001 or 12345678-001 or 12345678/abcdef-001.
I only need the numbers to the left of / or if that is not included in the string then to the left of -.
Please help if you can as this is driving me bonkers!
Many thanks
Huck
I'm trying to creat a field that picks up only the characters to the left of either "-" or "/" in the string. The number of characters to return can vary. eg the field [billref] can be 1234567-001 or 1234567/abc-001 or 12345678-001 or 12345678/abcdef-001.
I only need the numbers to the left of / or if that is not included in the string then to the left of -.
Please help if you can as this is driving me bonkers!
Many thanks
Huck