Results 1 to 2 of 2
  1. #1
    cem30 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    1

    Combine 4 Columns Into One - Specail Address

    House No. Street Prefix Street Name Street SFX Desire Results
    100 W MAIN 100 W MAIN
    101 WEST ST 100 WEST ST
    E MAIN E MAIN
    102 JACKSON 102 JACKSON


    105 E JONES LANE 105 E JONES LANE

    We have 4 Columns containing street address information we wish to combine into One Column

    Each column could have a blank or null value. We also do not want to use blanks if the value is blank. We have found some information on blank values and merge but how do we check each field to produce the desire result.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Maybe:

    Trim(Replace(Field1 & " " & Field2 & " " & Field3 & " " & Field4), " ", " "))

    The first pair of red quote marks has two spaces, the second has one space. This will eliminate any occurrence of double spaces due to empty fields.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 08-22-2014, 05:01 AM
  2. Replies: 2
    Last Post: 08-22-2013, 12:02 AM
  3. How to combine two columns into one
    By JRCharlie in forum Queries
    Replies: 4
    Last Post: 01-20-2013, 01:09 AM
  4. If columns are similar combine?
    By westcoastbmx in forum Queries
    Replies: 0
    Last Post: 09-04-2009, 12:54 PM
  5. Input Mask for an IP Address and Mack Address
    By baksg1995 in forum Access
    Replies: 18
    Last Post: 06-23-2009, 12:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums