Run-time error 3706 - Provider cannot be found. It may not be properly installed

Acam04

New Member
Joined
Jun 29, 2016
Messages
3
I am running Microsoft 32bit & Windows 7 64bit

The error is in the first line of code

xlCon.Open ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Q:\filepath\filename.xls;Extended Properties=Excel 8.0;")
xlRs.Open "Select * From [xtoidw$]", xlCon, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic, &H1
strSearchField = "SearchField = 1000"
xlRs.Find (strSearchField)

Any help will be greatly appreciated

Thank you,
Acam04
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
After researching a little further I found my solution. Just wanted to share with those that are interested.

The working code below:

xlCon.Open ("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=filepath\filename.xls;Extended Properties=Excel 8.0;")
xlRs.Open "Select * From [xtoidw$]", xlCon, ADODB.CursorTypeEnum.adOpenStatic, ADODB.LockTypeEnum.adLockOptimistic, &H1
strSearchField = "SearchField = 1000"
xlRs.Find (strSearchField)
 
Upvote 0

Forum statistics

Threads
1,215,398
Messages
6,124,693
Members
449,179
Latest member
kfhw720

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