CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Location
    Indiana USA
    Posts
    193

    Importing a MS Access table from one database to another via code

    I am using VB 6.0 with an Access 2000 database. I am most familiar with ADO. Is there a way to import or copy a table from an Access database into a different Access database? I need the complete table, data and all. I know how to create a table and copy the data from one recordset to another, but not to import an existing complete table (if possible). Thanks in advance.

    Catrina


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Importing a MS Access table from one database to another via code

    You can use a SQL Query to do this
    INSERT INTO MyTable IN 'd:\data\biblio.mdb' SELECT * FROM tblApplication

    This will select all the data from tblApplication and instert it into MyTable in another 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
  •  





Click Here to Expand Forum to Full Width

Featured