Results 1 to 5 of 5
  1. #1
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30

    Concatenate Records

    Reference: https://www.accessforums.net/queries...-if-32325.html


    Quote Originally Posted by June7 View Post
    Why would you want to denormalize data?
    I'm actually looking to do something similar here.

    I have similar data (I only need one field combined), I'll try and explain why I need them broken out...

    Item Product
    1-A 1
    1-B 1
    1-C 1
    2-A 2
    2-B 2
    3-A 3
    3-C 3


    Above is a decent mimic of what I'm pulling from.

    The preferable resulting data (at least, before a few more formulas) would be similar to this..

    1 1-A 1-B 1-C

    In finality I would like to get to...

    1 A,B,C

    A/B/C equate to different versions of the same product. I need these exported for display purposes, but they aren't gathered in anywhere convenient in our ERP software.

    Also, for reference, I'm dealing with well over 1000 records that I'd like to consolidate. Each "Product" having 3-4 "versions"


    Hopefully my answer will expound on the original question, and help get a resolution for both myself and DCV! Thanks so much for taking the time to read!
    Last edited by June7; 02-19-2013 at 06:54 AM. Reason: MOD EDIT: split post to individual thread

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Review http://allenbrowne.com/func-concat.html

    Don't yet know enough about DCV requirements to determine if this method applies.
    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.

  3. #3
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    Quote Originally Posted by June7 View Post
    Review http://allenbrowne.com/func-concat.html

    Don't yet know enough about DCV requirements to determine if this method applies.
    Hey June7,

    It seems like this will work for my purposes, but I'm having trouble implementing it into the database.


    Would you mind taking a look? I recreated necessary information into a test database ^^; It must be something I'm doing wrong in the VB section, but I followed the instructions--and don't really have enough back knowledge to troubleshoot.

    Getting the message "Undefined function 'ConcatRelated' in expression"
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    I can't review db until after Feb 22.

    Did you put the function in a general module? The module and function cannot have same name.

    Where are you calling the function - in query or from textbox?
    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.

  5. #5
    Siiig is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2013
    Posts
    30
    Oh, I didn't know they needed to be named differently. That seems to have cleared at least part of the problem up.

    I'm confused about the third argument in the function.

    [Edit!]


    Figured it out!

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

Similar Threads

  1. Query to concatenate records - newb
    By bentod in forum Queries
    Replies: 7
    Last Post: 10-08-2012, 12:06 PM
  2. Concatenate records in Query
    By cleon in forum Queries
    Replies: 3
    Last Post: 04-08-2012, 11:14 AM
  3. Replies: 1
    Last Post: 03-13-2012, 06:11 PM
  4. concatenate
    By stephenaa5 in forum Programming
    Replies: 2
    Last Post: 10-11-2010, 05:18 PM
  5. Need Code to Concatenate All Records
    By menntu in forum Programming
    Replies: 4
    Last Post: 06-05-2009, 09:43 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