Apr 23, 2007 #1 ph52 MIS Oct 18, 2006 3 TH Can any one give me sample of VB6-Coding to backup the selected row from a Tabel_A of DataBase DB1.MDB to the other Tabel_A in the other DB2.MDB
Can any one give me sample of VB6-Coding to backup the selected row from a Tabel_A of DataBase DB1.MDB to the other Tabel_A in the other DB2.MDB
Apr 23, 2007 #2 Andrzejek Programmer Jan 10, 2006 8,567 US Two ADODB connections: one to DB1.MDB, another one to DB2.MDB Code: str = "SELECT abc FROM Table_A WHERE... " rst.Open str, [blue]CnnDB1[/blue] str = "INSERT INTO Table_A (abc)" [blue]CnnDB2[/blue].Execute str Have fun. ---- Andy Upvote 0 Downvote
Two ADODB connections: one to DB1.MDB, another one to DB2.MDB Code: str = "SELECT abc FROM Table_A WHERE... " rst.Open str, [blue]CnnDB1[/blue] str = "INSERT INTO Table_A (abc)" [blue]CnnDB2[/blue].Execute str Have fun. ---- Andy
Apr 23, 2007 #3 SBerthold Programmer Sep 20, 2002 1,014 DE Use the IN section of a INSERT INTO sql Statement: INSERT INTO Tabel_A IN '' [;DATABASE=C:\MyDBs\DB2.Mdb;] SELECT * FROM Tabel_A Upvote 0 Downvote
Use the IN section of a INSERT INTO sql Statement: INSERT INTO Tabel_A IN '' [;DATABASE=C:\MyDBs\DB2.Mdb;] SELECT * FROM Tabel_A
Apr 23, 2007 #4 SBerthold Programmer Sep 20, 2002 1,014 DE But, looking again at the thread title, why not just copy the complete MDB file? Upvote 0 Downvote