petejigsaw
MIS
I am trying to write a formula that will take a different number of characters from a field value dependent on the fields actual value, but am struggling.
I want to evaluate the field value (which I thought would need an IS LIKE command) and then based on that result use LEFT to take a set number of characters from the field value.
The field is {ordhd.oh_cust_post}, so can take either the form
AA11 1AA or AA1 1AA
I need the formula to evaluate {ordhd.oh_cust_post} to establish which of the two forms above it takes, then based on which one it is, take either the left 6 or 5 characters respectively.
Anyone got any good ideas on how to structure this, as though I use Crystal alot, my formula writing is pretty simplistic!
Thanks in advance
I want to evaluate the field value (which I thought would need an IS LIKE command) and then based on that result use LEFT to take a set number of characters from the field value.
The field is {ordhd.oh_cust_post}, so can take either the form
AA11 1AA or AA1 1AA
I need the formula to evaluate {ordhd.oh_cust_post} to establish which of the two forms above it takes, then based on which one it is, take either the left 6 or 5 characters respectively.
Anyone got any good ideas on how to structure this, as though I use Crystal alot, my formula writing is pretty simplistic!
Thanks in advance