I am using Crystal XI
I need to extract the postcode district of a postcode.
I am using a formula as follows :
left({FSLOCA.FSLOCA_POSTCODE},instr({FSLOCA.FSLOCA_POSTCODE}," ")-1)
I have various formats to extract, the above only works when there is a space eg XXX YYYY or XXXX YYYY or XX YYY etc
however on occasion There wont be a 2nd part to a code eg Bristol city centre is just BS1 and so the formula must ALSO take this into account and return BS1 , at the moment it flicks back to the formula as you scroll through the report. I need something which takes all possible postcode types into consideration. This is driving me crazy
I need to extract the postcode district of a postcode.
I am using a formula as follows :
left({FSLOCA.FSLOCA_POSTCODE},instr({FSLOCA.FSLOCA_POSTCODE}," ")-1)
I have various formats to extract, the above only works when there is a space eg XXX YYYY or XXXX YYYY or XX YYY etc
however on occasion There wont be a 2nd part to a code eg Bristol city centre is just BS1 and so the formula must ALSO take this into account and return BS1 , at the moment it flicks back to the formula as you scroll through the report. I need something which takes all possible postcode types into consideration. This is driving me crazy