Results 1 to 6 of 6
  1. #1
    hell0 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    3

    how to import different records from another access file

    Hi, im relatively new to microsoft access, i had few people keying in alot of data separately into microsoft access files. So now i need to merge them into 1, the tables formats are the same, however how do i import records that are different from each access files into 1 single access file?

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    way to vague a question to provide any real answer other than to use the import wizard to append the data to a table.

    Note if these tables in different databases have autonumber primary keys, you will end up with data integrity issues when trying to append because you will have a number of records with the same primary key value.

  3. #3
    hell0 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    3
    however import wizard import the whole table, i just need a few entries in some of the tables, is there a way to do so?

  4. #4
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    import to a temporary table, then write a query to append the records you want

    Alternatively you can just use a query to reference the external database/table e.g.


    INSERT INTO tblMAIN
    SELECT * FROM tblx IN 'c:\path\externaldbname.accdb'
    WHERE tblx.somefield=somevalue

  5. #5
    hell0 is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2016
    Posts
    3
    so append function only works to move entries between tables in the same files?

  6. #6
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    just noticed a typo in my last post, now corrected.

    Not sure what you mean by an append function or entries - you have append queries, tables, fields and records. If this is what you mean, then no, my example is moving records from a table called tblx in a database called externaldbname.accdb into a table called tblMain in the current database. Instead of using * (which means all fields) you can specify the names of the fields to be imported from and the names of the fields to be imported to.

    Strongly recommend you research the SQL language and how the access query builder works so you can start to use the correct terminology when asking questions. There are plenty of tutorials out there.

    At the same time you may want to research normalisation so you can learn how tables and relationships should be designed.

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

Similar Threads

  1. Replies: 11
    Last Post: 04-27-2017, 05:16 PM
  2. Newbie Import. Update Field of Existing Records from Excel File
    By gedwards913 in forum Import/Export Data
    Replies: 8
    Last Post: 03-12-2015, 07:53 PM
  3. Replies: 5
    Last Post: 02-21-2014, 07:55 PM
  4. Import EDI file to Access
    By rhaner in forum Import/Export Data
    Replies: 4
    Last Post: 11-30-2012, 01:18 PM
  5. Import KML File Into Access
    By JonMulder in forum Import/Export Data
    Replies: 2
    Last Post: 05-18-2012, 11:06 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