Results 1 to 2 of 2
  1. #1
    Josen is offline Novice
    Windows 7 32bit Access 2013 32bit
    Join Date
    Oct 2019
    Location
    London
    Posts
    4

    Combining fields with matching fields

    I have a table (1) which contains a ticket field and other fields. I need to update a field (x) in this table (1) with the values of a field (w) in a second table (2) which contains the same (related) ticket field.



    However in table (2) there may be more than one record with the same ticket number with different values in field (w) - in which case I need the field (x) in table (1) to be updated to be a concatenation of all of said records from field (w) in table (2).

    I am relatively new to databases but have been using Excel and VB for years. Can I achieve this using a query method alone, if so how would this best be achieved?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    No, would require VBA. Review http://allenbrowne.com/func-concat.html

    I don't recommend saving to table, do this calc in query or textbox when needed.
    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. Finding not matching on multiple fields
    By Kramnation in forum Queries
    Replies: 2
    Last Post: 01-22-2016, 07:20 AM
  2. Replies: 14
    Last Post: 07-22-2013, 12:39 PM
  3. Replies: 11
    Last Post: 09-15-2011, 03:52 PM
  4. Concatenating fields from matching records
    By MWMike in forum Queries
    Replies: 1
    Last Post: 10-28-2010, 10:49 PM
  5. Replies: 5
    Last Post: 03-20-2010, 08:30 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