Update query problem

fieldling

Registered User.
Local time
Yesterday, 23:26
Joined
Jul 6, 2007
Messages
36
I have a field [Postcode] and I need to put a space in between the characters. For example:
RG204QZ needs to be RG20 4QZ
L75HG nees to be L7 5HG.

As these are British postcodes the space is always before the third from last character. So I am using: Right([Postcode],3) but not sure how to put the space in.

I've tried examples I found on the forum but no luck. I'm sure the answer is staring me in the face, just can't see it! Any ideas?

Thanks
 
Something like:

NewPostCode = left([Poastcode],4) & " " & right([Poastcode],2)

???
 
More like

Left([postcode],len(postcode)-3) & " " & right([postcode],3)

Brian
 
Its Ok Ken you could not possibly realise the crazy design of our Postcodes. ;)

Brian
 
brian/fieldling

is that correct - a post code always/only has 3 characters to the right of the space?
 
As far as i know yes, but I could be wrong, if so the parsing for fielding will get real interesting.

Brian
 
Comon Rich we are not discussing the quality of our postal service but in achieving correct postcodes.

Brian
 
.goodys.jpg
 
Many thanks for your replies everyone and sorry for starting a debate about postcodes of all things!
And it's true, a british postcode only ever has 3 characters after the space. The post will probably still reach it's destination without it but I'm not giving Royal Mail any excuses...
 
Many thanks for your replies everyone and sorry for starting a debate about postcodes of all things!
And it's true, a british postcode only ever has 3 characters after the space. The post will probably still reach it's destination without it but I'm not giving Royal Mail any excuses...

You needn't apologise for starting the debate, Rich has strayed from the Watercooler where he frequently writes rubbish.

Brian
 

Users who are viewing this thread

Back
Top Bottom