Results 1 to 4 of 4

Thread: SQL - INSERT ??

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Hi, another problem. I need to copy a table called "AR" to another table "Acc" in the same database, how do i do it? Can I use INSERT ? I used but without much success. Or is there another way? The code I used is as per below:

    Adodc1.RecordSource = "INSERT ACC (SELECT * FROM AR)"

    Pls guide me. Thks



  2. #2
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Post

    What you posted should work if ACC and AR have the same structure.

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Singapore
    Posts
    43

    Post

    Both the table got the same number of field but the error message keep coming out syntax error in INSERT INTO statement ??? Thks

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    Try to remove the parenthesis.

    Insert Acc Select * From Ar

    Regards,

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]



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