Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Mar 2005
    Location
    Leicestershire, United Kingdom
    Posts
    506
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Split Postcode Field (2000)

    Hi,

    I have a field called 'Postcode'. For an export project I need to split this field into two in a query as an expression.

    There is always a space between the first three/four characters and the final three characters.

    Any ideas?
    Best Regards,

    Luke

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Split Postcode Field (2000)

    You can use

    Left([PostCode], InStr([PostCode], " ")-1)

    and

    Mid([PostCode], InStr([PostCode], " ")+1)

  3. #3
    4 Star Lounger
    Join Date
    Mar 2005
    Location
    Leicestershire, United Kingdom
    Posts
    506
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Split Postcode Field (2000)

    Fantastic, thank you very much.
    Best Regards,

    Luke

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •