Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21843

Using 2 Databases together in Insert Statement

$
0
0
Hi,
I am using Access databases
I want to copy data from one database to other database, ADODB connection names are DbSource and DbTarget.

I have placed 2 ListBoxes on the form, list1 and list2, and get all the tables of DbSource in List1 and DbTarget in List2

I tried to write this code but not working....
Code:

        DbTarget.Execute "Insert into " & List1.List(I) & " Select * from " & List1.List(I)
any help will be highly aapriciated

Viewing all articles
Browse latest Browse all 21843

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>