nealvenables
Programmer
This is driving me nuts!
I'm trying to open an ADO connection to an Excel file, so that I can load the contents of the Excel file into an ADO recordset.
The code looks like this...
.. and is failing at the line
with everyone's favourite "Could not find installable ISAM" error.
I've followed Microsoft suggestions (checked the MSEXCL40.DLL is registered correctly, reinstalled Office, upgraded MDAC to the latest version) and trawled Tek-Tips and nothing is fixing the issue.
Can anyone shed any light before I take desparate measures!?
btw: system config is NTS 4.0 + SP6, Office 2000 SR1 + SP4, MDAC 7.1, JET 4.0 SP3
I'm trying to open an ADO connection to an Excel file, so that I can load the contents of the Excel file into an ADO recordset.
The code looks like this...
Code:
adoCNN_XL.ConnectionString = _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strPath & strFile & ";" & _
"Extended Properties=Excel 8.0;HDR=Yes;"
adoCNN_XL.Mode = adModeRead
adoCNN_XL.Open
adoRST_XL.Open "SELECT * FROM [SHEET1];", adoCNN_XL, adOpenStatic
.. and is failing at the line
Code:
adoCNN_XL.Open
I've followed Microsoft suggestions (checked the MSEXCL40.DLL is registered correctly, reinstalled Office, upgraded MDAC to the latest version) and trawled Tek-Tips and nothing is fixing the issue.
Can anyone shed any light before I take desparate measures!?
btw: system config is NTS 4.0 + SP6, Office 2000 SR1 + SP4, MDAC 7.1, JET 4.0 SP3