Results 1 to 4 of 4
  1. #1
    raychow22 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    May 2017
    Posts
    145

    Merging Two Tables Together. Append Data

    Hi Forum,

    I like to know if there a good way to appending my data together from different tables but have the same structure. The problem is that I have MVF which does not allow me to append the databases. I know that MVF is a programmer's nightmare and I've heard to never use it; however, for my applications the MVFs are helpful (I am not a programmer myself) and I do not want to eliminate them.

    My solution would be to export these tables to excel and combine them there and import it back to Access.. it seems like a headache to do, but if anyone else got any suggestions, I would love to hear them. Thanks!!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Nope, no 'good' way - if by 'good' you mean 'simple' - because of the MVF. Will require VBA code that manipulates parent and child recordset objects.

    Not sure how exporting to Excel then back to Access will make dealing with MVFs any easier.
    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
    raychow22 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    May 2017
    Posts
    145
    Quote Originally Posted by June7 View Post
    Nope, no 'good' way - if by 'good' you mean 'simple' - because of the MVF. Will require VBA code that manipulates parent and child recordset objects.

    Not sure how exporting to Excel then back to Access will make dealing with MVFs any easier.
    You're right June7. Doing the export and import way eliminates the design of the tables which affects the forms. Do you know the VBA code to manipulate parent and child recordset objects?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Bing: Access vba save data into multi value field
    https://msdn.microsoft.com/en-us/lib...ffice.12).aspx
    https://social.msdn.microsoft.com/Fo...orum=accessdev

    However, I did find a way to insert values to MVF field of existing records using an INSERT query that pulls from another table MVF field. Review https://social.msdn.microsoft.com/Fo...orum=accessdev

    So possibly you could run a query that adds new records with all fields except the MVF and then run a second SQL action to insert the MVF values.
    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. Append/Import data to normalized tables
    By margzj in forum Access
    Replies: 3
    Last Post: 08-05-2017, 12:58 PM
  2. Append Data from two tables
    By BioHazard in forum Queries
    Replies: 1
    Last Post: 03-08-2016, 08:38 AM
  3. Merging Summaries and Data Tables?
    By anonymous131 in forum Forms
    Replies: 3
    Last Post: 02-04-2013, 03:15 PM
  4. Merging 2 tables
    By todavy in forum Queries
    Replies: 4
    Last Post: 12-02-2009, 10:12 AM
  5. Replies: 8
    Last Post: 11-04-2009, 04:22 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