Click to See Complete Forum and Search --> : SQL - INSERT ??
SAMS
Sep 22nd, 1999, 07:05 PM
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
JHausmann
Sep 23rd, 1999, 04:00 AM
What you posted should work if ACC and AR have the same structure.
SAMS
Sep 23rd, 1999, 09:31 AM
Both the table got the same number of field but the error message keep coming out syntax error in INSERT INTO statement ??? Thks
Serge
Sep 23rd, 1999, 06:43 PM
Try to remove the parenthesis.
Insert Acc Select * From Ar
Regards,
------------------
Serge
Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.