Jan 9, 2002 #1 briglass Programmer Dec 4, 2001 179 GB I have 2 access database files, apple.mdb and banana.mdb. I would like to know how (using SQL or ADO) to copy a table from within banana.mdb and paste it into apple.mdb from visual basic. This would be really helpful!
I have 2 access database files, apple.mdb and banana.mdb. I would like to know how (using SQL or ADO) to copy a table from within banana.mdb and paste it into apple.mdb from visual basic. This would be really helpful!
Jan 9, 2002 #2 smedvid MIS May 28, 1999 1,228 US I don't have the syntax, but look up Database.Transfer... Steve Medvid "IT Consultant & Web Master" http://users.erols.com/medvid/ Upvote 0 Downvote
I don't have the syntax, but look up Database.Transfer... Steve Medvid "IT Consultant & Web Master" http://users.erols.com/medvid/
Jan 9, 2002 #3 sreek2 Programmer Jan 10, 2002 1 IN Please Try the Following Query it works for you... Dim Db1 As DAO.Database Set Db1 = OpenDatabase("C:\apple.mdb" Db1.Execute "Select * INTO [TableName] From [TableName] IN 'C:\banana.mdb'" Thanks Sreekanth Upvote 0 Downvote
Please Try the Following Query it works for you... Dim Db1 As DAO.Database Set Db1 = OpenDatabase("C:\apple.mdb" Db1.Execute "Select * INTO [TableName] From [TableName] IN 'C:\banana.mdb'" Thanks Sreekanth
Jan 10, 2002 #4 PalaniappaBabu Programmer May 23, 2001 10 US Pls try this..... Dim cn as ADODB.Connection; cn.open("apple.mdb" sql = "SELECT oldTable.* INTO newTable IN 'banana.mdb' FROM oldTable" cn.execute(sql); Upvote 0 Downvote
Pls try this..... Dim cn as ADODB.Connection; cn.open("apple.mdb" sql = "SELECT oldTable.* INTO newTable IN 'banana.mdb' FROM oldTable" cn.execute(sql);
Jan 10, 2002 1 Thread starter #5 briglass Programmer Dec 4, 2001 179 GB Thanks! This is the one that ended up working for me: Set Db1 = OpenDatabase("C:\apple.mdb" Db1.Execute "Select * INTO [TableName] From [TableName] IN 'C:\banana.mdb'" Upvote 0 Downvote
Thanks! This is the one that ended up working for me: Set Db1 = OpenDatabase("C:\apple.mdb" Db1.Execute "Select * INTO [TableName] From [TableName] IN 'C:\banana.mdb'"