Accessing ADO

galliena

New Member
Joined
Mar 1, 2014
Messages
8
Hello guys,

I am learning VBA by myself and I saw some codes that have the expression provider in it, like this one

Connection.Provider = "Microsoft.ACE.OLEDB.12.0"

I can not understand what is the function of the Provider in this case and where I can find the code in the right("Microsoft.ACE.OLEDB.12.0"). I would be more them glad if someone could help me.



Ps:Connection is an ADODB.Connection object.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hello galliena,

Using ADO, there are various providers you can use to connect to an external data source. The provider you would use would largely depend on the type of database you're trying to connect to.

For the provider string mentioned, the code is trying to connect to an Access file.

Thanks,
Thomas
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,011
Members
452,374
Latest member
keccles

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