Results 1 to 5 of 5
  1. #1
    andrewosborne is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2011
    Posts
    3

    Creating a copy of records between databases

    Hi everyone, I am new to Access and this is my first post on the forum and I'm hoping you can help with a problem.

    I have a large database with a table in it called casemaster. This table contains a large number of individual cases that have been either completed or are outstanding. I would like to copy the records for outstanding cases from this database to another database called Reports.

    I have linked the casemaster table in to the other database and created a make table query that has populated a table called casemaster local with only the outstanding records from the large database. However, I need to be able to automatically update the casemaster local table with the outstanding records each time the Reports database is opened. Is this possible?



    Any help would be gratefully received.

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    somewhat depends on what is meant by "automatically" ....but manually you would just simply delete the existing table, and then remake it by running that query again...

    so that's simple to set up those two tasks to run one after the other in a macro...
    DeleteObject
    OpenQuery

    now to trigger the macro is easy too - you can link a button to it using the wizard - or force it maybe via the opening even of your start form....

    hope it helps.

  3. #3
    andrewosborne is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2011
    Posts
    3
    Thank you for the pointers - it is most appreciated.

    I am sorry that I did not make myself clear when I said "automatically". I would like to open up the database and run the macro to delete the existing table and then run the make table query to recreate the table before the start form opens.

    Is this possible?

  4. #4
    NTC is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    Nov 2009
    Posts
    2,392
    you can define the macro with the autoexec name so it fires when the db opens....or put it in the StartForm's OnLoad event

    probably not going to make much difference from the user experience....

  5. #5
    andrewosborne is offline Novice
    Windows XP Access 2002
    Join Date
    Sep 2011
    Posts
    3
    I have created the autoexec as suggested an it works perfectly.

    Thanks so much for your guidance.

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

Similar Threads

  1. Creating a new MDB for separate databases?
    By SandyClark in forum Import/Export Data
    Replies: 1
    Last Post: 06-02-2011, 10:44 AM
  2. Creating Multipule records
    By Icewolf0927 in forum Queries
    Replies: 3
    Last Post: 10-27-2010, 02:03 PM
  3. Replies: 0
    Last Post: 10-15-2009, 02:08 PM
  4. Moving Records Between Databases
    By sscott in forum Access
    Replies: 2
    Last Post: 03-22-2009, 09:08 PM
  5. Creating top values with two records
    By avesamuel in forum Queries
    Replies: 0
    Last Post: 10-15-2007, 10:45 PM

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