Results 1 to 4 of 4
  1. #1
    darcien is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    2

    Combine Two Records into One from One Table

    Hi, I am trying to combine several records from ONE linked table into one record that have the same Order#.



    My structure is as follows:
    O5ORD ODTEXT
    7788559 OPTIONS END
    7788559 OPTIONS BEGIN
    7788559 18 4 GW 4 X 10 AIR TIRE
    806860 REF 3501050202020
    806860 OPTIONS BEGIN
    806860 NO

    I want it to look like this:
    O5ORD ODTEXT
    7788559 OPTIONS END OPTIONS BEGIN 18 4 GW 4 X 10 AIR TIRE
    806860 REF 3501050202020 OPTIONS BEGIN NO

    I am not that familiar with VBA, but I think it can be used to do this. I have searched, but I could not make any of the code I found work. Most of the code I found was based on two tables with a one to many relationship. My data is all in one table, so I kept getting errors.

    Can someone please help?

    Thank you!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Did you try something like this?

    http://allenbrowne.com/func-concat.html
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    darcien is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    2
    Yes, but I do not understand the code enough to change it to my needs. I kept getting erros when trying to use it. I believe it is for 2 tables with a 1:M relationship, where I just have 1 table.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    What is your code? How are you using it? What errors do you get?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Combine records in a table
    By smoothlarryhughes in forum Queries
    Replies: 3
    Last Post: 09-14-2012, 08:14 PM
  2. Replies: 1
    Last Post: 03-13-2012, 06:11 PM
  3. VBA Loop to Combine Records
    By admessing in forum Queries
    Replies: 23
    Last Post: 03-06-2012, 11:37 AM
  4. Combine master detail records in one query
    By mariost in forum Queries
    Replies: 4
    Last Post: 05-14-2011, 11:25 AM
  5. Replies: 8
    Last Post: 01-21-2011, 10:28 AM

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