Results 1 to 4 of 4
  1. #1
    2 Star Lounger
    Join Date
    Mar 2006
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Access 2000 (Copy tables)

    I want to copy tables from the database placed in "C:beWaresLists.mdb" into the database placed in "C:beaudit.mdb. I have to do it by code but i do not know the forumula. Is it with copy object or copytable ?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Access 2000 (Copy tables)

    You can use DoCmd.TransferDatabase. Type TransferDatabase in the Visual Basic Editor (for example in the Immediate window) and press F1 for help.

  3. #3
    2 Star Lounger
    Join Date
    Mar 2006
    Posts
    195
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Access 2000 (Copy tables)

    DoCmd.Transferdatabase is used to import and export tables through the current database. Can i copy a table from database A into database B when both databases are not the current database?

    regards

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Access 2000 (Copy tables)

    I would run the code from the database that contains the source tables, or else from the destination database.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •