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

    copy table (Access 2000)

    By Edit Copy and Paste i can copy a table,select the option "Structure only and paste it".In this case the Autonumber begins from 1.Iis it possible to do it by code ?

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

    Re: copy table (Access 2000)

    You can use DoCmd.TransferDatabase:
    <code>
    DoCmd.TransferDatabase acImport, "Microsoft Access", CurrentDb.Name, acTable, "tblOld", "tblNew", True
    </code>
    where tblOld is the name of the existing table, and tblNew the name of the structure-only copy.

Posting Permissions

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