I\'m trying to speed up my code and the bottleneck seems to be the individual insert statements to a Jet MDB from outside Access via ODBC. I need to insert 100 rows at a tim
Your query should look like this
insert into aaa (col1, col2)
select * from (select 'yourdatarow1col1' as col1 , 'yourdatarow1col2' as col2 from ffffd
union all
select 'yourdatarow2col1' as col1, 'yourdatarow1col2' as col2 from ffffd) as tmp
aaa: Is your target table in access
ffffd: create a table in access db with one colum and must have 1 row, doesn't not mater what data.
aliases: All aliases should have same name and order has target table
Hope works for you, my process drop from 15 minutes to 1.30 minutes
Bye Gus