PC Review


Reply
Thread Tools Rate Thread

"Catastrophic Failure" error using ADO to query Excel Workbook...

 
 
=?Utf-8?B?UGhpbGlw?=
Guest
Posts: n/a
 
      19th Jun 2007
Hi,

I am using ADO and OLE DB to read an Excel range from a closed workbook into
a recordset that I then dump into my worksheet using the CopyFromRecordset
method.

This is similar to the methods explained on Ron De Bruins site
(http://www.rondebruin.nl/ado.htm) - and even his samples do not work on my
Windows XP / Office 2003 machine.

Strangely enough, Rons samples work fine on my Windows 2K machine with
office 2003.

But on my main dev machine (Win XP / Office 2003) I get this "catastrophic
failure" error.

Is there some change in the drivers between Windows 2000 and Windows XP that
prevents this working - and how do I get it to work? Should I reinstall the
latest MDAC?

thanks for any help

Philip
 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      19th Jun 2007
Hi Philip

Must work OK

Do you have any missing references in the VBA editor

Alt F11
Tools>References

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Philip" <(E-Mail Removed)> wrote in message news:1E356482-2DA4-46EF-A21A-(E-Mail Removed)...
> Hi,
>
> I am using ADO and OLE DB to read an Excel range from a closed workbook into
> a recordset that I then dump into my worksheet using the CopyFromRecordset
> method.
>
> This is similar to the methods explained on Ron De Bruins site
> (http://www.rondebruin.nl/ado.htm) - and even his samples do not work on my
> Windows XP / Office 2003 machine.
>
> Strangely enough, Rons samples work fine on my Windows 2K machine with
> office 2003.
>
> But on my main dev machine (Win XP / Office 2003) I get this "catastrophic
> failure" error.
>
> Is there some change in the drivers between Windows 2000 and Windows XP that
> prevents this working - and how do I get it to work? Should I reinstall the
> latest MDAC?
>
> thanks for any help
>
> Philip

 
Reply With Quote
 
=?Utf-8?B?UGhpbGlw?=
Guest
Posts: n/a
 
      19th Jun 2007
Hi,

I re-registered 'C:\WINDOWS\System32\msexcl40.dll' in the registery Editor
and now at least your examples work, so I am hopeful that was the problem ...

and so far it seems to work with my CSV and MS Excel ones too (I have
outrageous UNION and GROUP BY queries against multiple worksheets in multiple
workbooks and csv files going on ... I won't ruin your day with the details!)

I got the solution after seeing another error message about 'Could not find
installable ISAM'

so thanks anyway !

Philip

"Ron de Bruin" wrote:

> Hi Philip
>
> Must work OK
>
> Do you have any missing references in the VBA editor
>
> Alt F11
> Tools>References
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Philip" <(E-Mail Removed)> wrote in message news:1E356482-2DA4-46EF-A21A-(E-Mail Removed)...
> > Hi,
> >
> > I am using ADO and OLE DB to read an Excel range from a closed workbook into
> > a recordset that I then dump into my worksheet using the CopyFromRecordset
> > method.
> >
> > This is similar to the methods explained on Ron De Bruins site
> > (http://www.rondebruin.nl/ado.htm) - and even his samples do not work on my
> > Windows XP / Office 2003 machine.
> >
> > Strangely enough, Rons samples work fine on my Windows 2K machine with
> > office 2003.
> >
> > But on my main dev machine (Win XP / Office 2003) I get this "catastrophic
> > failure" error.
> >
> > Is there some change in the drivers between Windows 2000 and Windows XP that
> > prevents this working - and how do I get it to work? Should I reinstall the
> > latest MDAC?
> >
> > thanks for any help
> >
> > Philip

>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      19th Jun 2007
Thanks for posting back with the fix

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Philip" <(E-Mail Removed)> wrote in message news:9E4D4541-C15E-42E5-A186-(E-Mail Removed)...
> Hi,
>
> I re-registered 'C:\WINDOWS\System32\msexcl40.dll' in the registery Editor
> and now at least your examples work, so I am hopeful that was the problem ...
>
> and so far it seems to work with my CSV and MS Excel ones too (I have
> outrageous UNION and GROUP BY queries against multiple worksheets in multiple
> workbooks and csv files going on ... I won't ruin your day with the details!)
>
> I got the solution after seeing another error message about 'Could not find
> installable ISAM'
>
> so thanks anyway !
>
> Philip
>
> "Ron de Bruin" wrote:
>
>> Hi Philip
>>
>> Must work OK
>>
>> Do you have any missing references in the VBA editor
>>
>> Alt F11
>> Tools>References
>>
>> --
>>
>> Regards Ron de Bruin
>> http://www.rondebruin.nl/tips.htm
>>
>>
>> "Philip" <(E-Mail Removed)> wrote in message news:1E356482-2DA4-46EF-A21A-(E-Mail Removed)...
>> > Hi,
>> >
>> > I am using ADO and OLE DB to read an Excel range from a closed workbook into
>> > a recordset that I then dump into my worksheet using the CopyFromRecordset
>> > method.
>> >
>> > This is similar to the methods explained on Ron De Bruins site
>> > (http://www.rondebruin.nl/ado.htm) - and even his samples do not work on my
>> > Windows XP / Office 2003 machine.
>> >
>> > Strangely enough, Rons samples work fine on my Windows 2K machine with
>> > office 2003.
>> >
>> > But on my main dev machine (Win XP / Office 2003) I get this "catastrophic
>> > failure" error.
>> >
>> > Is there some change in the drivers between Windows 2000 and Windows XP that
>> > prevents this working - and how do I get it to work? Should I reinstall the
>> > latest MDAC?
>> >
>> > thanks for any help
>> >
>> > Philip

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Live Mail - "catastrophic failure" Jim Cladingboel Windows XP Help 2 2nd Mar 2009 05:55 AM
What does "Managed MAPI Service Catastrophic Failure " mean? =?Utf-8?B?Z29hbGtrZWVwZXIxMDE=?= Microsoft Outlook Discussion 0 9th May 2007 11:35 PM
"Catastrophic failure" / "Catastrophic error" accessing ActiveX Object jdanoz Microsoft VB .NET 2 25th Nov 2005 11:16 AM
error message "managed MAPI service catastrophic failure". what . =?Utf-8?B?aWdub3JhbXVz?= Microsoft Access 0 6th Nov 2004 04:01 AM
Error Message "Catastrophic Failure" Dave Burgess Windows XP Performance 1 1st May 2004 07:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:59 PM.