Extract part of PostCode field

aedislee

New member
Local time
Today, 17:23
Joined
Feb 12, 2015
Messages
4
Good afternoon all

I have a table with about 29,000 postcode values

I want to extraxct the first part of the field (usually 3 or 4 characters)

how can I automate this please?

thanks
lee
 
How do you know whether to get 3 or 4 characters?
 
Assuming the postcode is in its own field and there is always a space between the first and second parts the you can use

firstpart=left(postcode,instr(postcode," ")-1)
 

Users who are viewing this thread

Back
Top Bottom