Results 1 to 3 of 3
  1. #1
    cotri is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    32

    Combine fields into one

    I have a form for taking orders and would like to combine [Customer Name], [Address], [City], [State], and [Zip Code] into one field so it can copy the complete name/address and then paste it into another application. The final “combo” field would have to be similar to how a normal address would be printed.

    Customer Name
    Address
    City, State. Zip Code.



    The name and address each on their own lines and city, state and zip code on one line with a coma after city.

    Any Ideals? Thanks

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Let me get you straight that you have a Form with the following field Text Boxes: [Customer Name], [Address], [City], [State], and [Zip Code]

    Now you want them to be arranged like this:

    Customer Name
    Address
    City, State. Zip Code.


    Create a text box on the form

    Type the following code in the Control Source of the text box

    =[Customer Name] & Chr(13) & Chr(10) & [Address] & Chr(13) & Chr(10) & [City] & ", " & [State] & ". " & [Zip Code]

    Please mark the thread solved if this solves your problem.
    Last edited by maximus; 03-04-2010 at 06:19 AM.

  3. #3
    cotri is offline Advanced Beginner
    Windows XP Access 2000
    Join Date
    Jan 2010
    Posts
    32
    Worked perfectly…Thanks so much

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

Similar Threads

  1. If columns are similar combine?
    By westcoastbmx in forum Queries
    Replies: 0
    Last Post: 09-04-2009, 12:54 PM
  2. Replies: 3
    Last Post: 08-02-2009, 03:52 PM
  3. combine three tables in a query
    By neuenglander in forum Queries
    Replies: 0
    Last Post: 08-21-2008, 04:02 AM
  4. Newbie Needs help with combine/average
    By wfd1753 in forum Queries
    Replies: 2
    Last Post: 05-16-2008, 06:43 AM
  5. form formula to combine two fields
    By InvGrp in forum Forms
    Replies: 1
    Last Post: 10-20-2006, 12:10 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