I am trying to isolate the identifying area codes from postcodes and want to extract the first one or two letters from each postcode. I have created a query that uses:
SmallPostCode: IIf(Len([PostalCode])>=2,Left$([PostalCode],2),"")
to extract the first two characters of the postcode. But how do I cope with postcodes that have only one letter before numbers start? (eg G66 3DP as opposed to GU66 3DP). Any help would be most appreciated!
D Diver
SmallPostCode: IIf(Len([PostalCode])>=2,Left$([PostalCode],2),"")
to extract the first two characters of the postcode. But how do I cope with postcodes that have only one letter before numbers start? (eg G66 3DP as opposed to GU66 3DP). Any help would be most appreciated!
D Diver