How can I fill Database with VBA on Mac?

Pavel1

New Member
Joined
Apr 11, 2014
Messages
3
Hello everyone!

I have a lot of files with tables. Data from these tables should be transferred to SQLite database. I'm coding on Mac, thus there are a lot of limitations. As a driver I use one from Actual Technologies.

I can easily get data from DB with QueryTables. But how can I write data to DB with it? I tried making a loop with QueryTables.Add, but:
1. It seems unreasonable to create a new QT for each row I want to write.
2. It works badly, causing General ODBC Error 1004. Probably because it attempts to send an INSERT query while the previous one is still in work (and you can't set BackgroundQuery to False with "INSERT").

So what's better to do about it? Can I insert/get data to/from Database without using QueryTables at all? ADO doesn't work on Mac.

Or how can I write data to DB with QT?

Thanks in advance!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,214,399
Messages
6,119,279
Members
448,884
Latest member
chuffman431a

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top