Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Merge data from two fields (Office XP)

    Hi,

    I have data in two fields that I need to merge into a new field. The fields are called suburb and city. I need to merge the data into another field called sub/town, all within the same table. An example would be (suburb) Balmoral (City) Auckland (sub/town) Balmoral Auckland. There needs to be a space between the two words. I just really want to run an update query on a regular basis to do this but I don't know what to do.

    I would really appreciate some help on this.

    Thanks....Peter

  2. #2
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Merge data from two fields (Office XP)

    There is no need to store this third field because you can construct it in a query any time you need it.

    In a query create a calculated field as follows:

    sub/town: [suburb] & " " & [city]

    If you really want to store it, put [suburb] & " " & [city] on the update to line of an update query.
    Regards
    John



  3. #3
    Star Lounger
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    63
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Merge data from two fields (Office XP)

    Thanks!!!

Posting Permissions

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