Results 1 to 4 of 4

Thread: How to insert a table records into other table

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Pakistan
    Posts
    436

    How to insert a table records into other table

    As per title i want to insert a table's records into other table, or u can say copy records from one table to other tabel, what shoul be sql query.?

  2. #2
    Lively Member
    Join Date
    Jan 2002
    Location
    Posts
    114

    Re: How to insert a table records into other table

    Hope this query will work for U

    Connection.Execute "INSERT INTO Table2(Field1,Field2,Field2) Select Field1,Field2,Field3 From Table1"

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Pakistan
    Posts
    436

    Re: How to insert a table records into other table

    i want to insert entire table do not specify fields, what should be query for entire table copy into other table.

  4. #4
    Lively Member
    Join Date
    Jan 2002
    Location
    Posts
    114

    Re: How to insert a table records into other table

    Change the query to

    Connection.Execute "INSERT INTO Table2 Selec * Table1"

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