Could not find Installable ISAM Error in Excel Macro
- From: Parthi <Parthi@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Nov 2008 02:17:00 -0800
Hi,
I am creatinga macro which could open a large (1 GB) csv file and parse it
to extract the necessary data using VBA.
I have written it as an Excel 2000 Macro.
The Steps that i follow is as below(while manually doing...am trying to
automate this task only)
1)I Browse for the csv File
2) Open it using MS-Access 2000
3) Delimit the columns using (,) seperator and attach the Table created with
the CSV.
4) then i go about querying the database for necessary records.
The Issue is when the Macro runs it opens a Database Connection using the
following syntax
vFullPath = CStr(Application.GetOpenFilename)
Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")
strFilePath = oFSObj.GetFile(vFullPath).ParentFolder.Path
strFilename = oFSObj.GetFile(vFullPath).Name
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & vFullPath &
";" & "Extended Properties=""text;HDR=Yes;FMT=Delimited"""
Set oRS = CreateObject("ADODB.RECORDSET")
oRS.Open "SELECT * FROM" & strFilename & ", oConn, 3, 1, 1
Now the Issue is at the oConn.Open Statement i receive a Could not Find
Installable ISAM error.
There is a Long Thread already on this context and a lot of solutions but i
couldnt find one that solves my issue.
Actually i find that the issue comes in place when the delimiting of the csv
has to be done. ie., on the extended properties.
Trouble shoots tried:
1)I found that when i assign a variable name(adOpenKeyset, adLockOptimistic,
adCmdTable) instead of 3,1,1, the issue was not there but was asking for the
login credentials of the admin and a onerror resume next was fetching zero
records as it was not able to establish a connection.
2)I have also added the Microsoft ActiveX Data Objects 2.8 Library in the
excel reference.
3)I have even tried re-registering the msexcl40.dll.
I feel that the issue might be at the point where i need to delimit the csv
to form the columns.Not sure.. if that is the reason.
Kindly help me out in this...
Thanks in advance
Parthi
.
- Follow-Ups:
- Re: Could not find Installable ISAM Error in Excel Macro
- From: Bob Barrows
- Re: Could not find Installable ISAM Error in Excel Macro
- Prev by Date: Re: Is it possible to set a RowFilter only where a column exists?
- Next by Date: Re: Could not find Installable ISAM Error in Excel Macro
- Previous by thread: Is it possible to set a RowFilter only where a column exists?
- Next by thread: Re: Could not find Installable ISAM Error in Excel Macro
- Index(es):
Relevant Pages
|