amorosik
Member
- Local time
- Today, 02:47
- Joined
- Apr 18, 2020
- Messages
- 514
Have you tried the variant in #17? It works for me - but I could only test with 2 SQL servers.
CurrentDB and its DBEngine are only responsible for execution and data transfer if you use 2 external ODBC sources in the SQL statement.
Yes, I tried with two different Sqlite db
And it works only if at least one of the tables of the two databases is linked to the Access procedure code
If no table is linked, it doesn't work, it returns error 3000
The instruction usede is:
Currentdb.execute "INSERT INTO [ODBC;Driver={SQLite3 ODBC Driver};Dsn=Erp2_Sqlite;Database=d:\erp2_sqlite.db].ARTICOLI (id_articoli, codice_interno, descrizione_breve) select id_articoli, codice_interno, descrizione_breve FROM [ODBC;Driver={SQLite3 ODBC Driver};Dsn=Erp2_Sqlite_bis;Database=d:\erp2_sqlite_bis.db].ARTICOLI"