Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: "Could Not Find Installable ISAM"

I've written some VBA code in an Excel workbook to retrieve data from an Access database in the same directory on a desktop. It works fine on my machine and several other machines running Windows XP, but when we tested this on a Vista machine, we encountered the following error:

Could not find installable ISAM

I've done a bunch of searching online but can't seem to find a concrete answer. The connection string seems to be fine, and, as I mentioned, it works on several machines.

Does anyone have any idea what could be causing this? My connection string is as follows:

Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\ptdb\Program Tracking Database.mdb; 

Thanks

like image 362
cLFlaVA Avatar asked Feb 04 '09 16:02

cLFlaVA


Video Answer


1 Answers

Place single quotes around the Extended Properties:

OleDbConnection oconn =      new OleDbConnection(         @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + path + ";Extended Properties='Excel 8.0;HDR=YES;IMEX=1;';"); 

Try it, it really works.

like image 144
bhupendra singh Avatar answered Sep 21 '22 03:09

bhupendra singh