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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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