Results 1 to 7 of 7
  1. #1
    kornelius is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    7

    Access external table


    From my open database (db1) I want to delete all records from an not-linked table (table1) in an external database (db2). After that I want to add all records from db1-table1 to db2-table1. I am looking for the vba (Sql) code.
    Thanks
    Kornelius

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Link the Table1 in db2 to your db1. Why not use the LinkedTableManger Tool in Access?

  3. #3
    kornelius is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    7
    The target is to create each month an image of my existing database. Therefore I want to load the tables in an external database. The image lives an independant life and can be consultated to verify the modifications which toke place during the next month.
    Thanks for your advice
    Greatings
    Kornelius

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Are you saying, over the course of a year , you will have 12 separate and distinct databases. Each represent a month's activities?

    Perhaps you could explain your situation more.

    You can have a database, say MyTemplate.mdb.
    This can have all your table structures (without any data) in the template.
    You can take a copy of your template and link to tables in any or several existing databases and link the tables, or import data into the template tables.

    You can also have a transaction log into which you would store all transactions/modifications with a unique number and time. This can be interrogated at any point to determine the status.

    It all depends on what you want to accomplish and then look at various options.

  5. #5
    kornelius is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    7
    Thanks for your intervention and the explanation
    I 'll give you some more explanation.
    The database considers an HRM-database. At the end of the month the end-user takes an image of his database (That 's the part I want to automate). The next month he makes his modifications needed in the main database; so he can always consult the old situation in the image if necessary. At the end of this month he takes another image again which will overwrite the old-one. That means at any time one main database and one image database.

    To autmate this procedure I want to load the tables in an extern database. I think it 's possible by SQL.

    Thanks and greetings
    Kornelius

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    And what if he wants to know the details(image) of something 2 or 3 months ago?

  7. #7
    kornelius is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2011
    Posts
    7
    When the end-user takes the image that means that he will accept the actual situation that will be used to calculate the salary based on presence, sick-leace etc. This will be the base of the next month. During the next month he must be able to retun at the situation at the start of the month.

    Thanks
    greetings

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

Similar Threads

  1. Linking Access Table with already imported External Data (Excel)
    By izzarshah in forum Import/Export Data
    Replies: 1
    Last Post: 07-29-2010, 09:40 AM
  2. populate table w/ external data
    By tlittell in forum Programming
    Replies: 2
    Last Post: 02-20-2010, 08:29 AM
  3. Error Linking External Table
    By mcgowan.b in forum Import/Export Data
    Replies: 9
    Last Post: 11-24-2009, 07:44 AM
  4. Appending a table with external script
    By farva in forum Import/Export Data
    Replies: 0
    Last Post: 11-09-2009, 12:12 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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