ADO connection, Execute method, and Excel VBA...

Gedeon Kh

New Member
Joined
Apr 8, 2016
Messages
9
Dear friends,

I'm creating an Excel Add-in that has several functions. Also I have a bid data in Access (more than 10 000 rows, and several tables).
The Add-in connects to DB when it opens. Then every function in the Add-in use RecordSets to read data from Access DB and do some calculations.

This method works. The problem is the speed )).
When I use a workbook that has lots of this Add-in functions, it works very slow And every time it takes several minutes to open the workbook.

Of course I could bring the data to Add-in worksheets, but this will overload the excel file.

So I would like to ask Excel/Access experts if there is another way to read the data and not to execute them every time with every function?
 
Thanks for the trick, this was faster.

But the value in Access is 8.1811, but excel returns it as 8.18109989166259:


I'm sure the number in Access is also 8.18109989166259

but if you round
8.18109989166259 you get 8.1811

so access is just formatting the number and showing you the rounded version

you can change the format in excel to also show the rounded version

 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,225,725
Messages
6,186,650
Members
453,367
Latest member
bookiiemonster

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