Board index » delphi » DAO and OLE

DAO and OLE

I hope someone can help.  I am trying to access DAO through OLE.  When the
line below is executed, I get: EOleError with message "OLE error 80040112'.
 I have even reinstalled the DAO from my MS VC++ 5.0 CD ROM, rebooted, etc.
 None of the documentation that I have refers to this particular error
number.

Any insights on this matter will be appreciated.

=======
....
var
        db: variant;

begin
....
   db := CreateOleObject('DAO.DBEngine'); <=== EOleError:  OLE error
80040112
....
end;
=======

--
Bryce:

Note: To reply, remove the * from my email address.  
Do not send junk email!!!

 

Re:DAO and OLE


There was a .REG file posted on the MS FTP server last week that claimed to
address an issue arising from the Office97 installation procedure.
Apparently, Office97 Add/Remove option in conjunction with RegClean V.4.0,
in certain situations, will delete the registry entries for DAO and,
consequently, disable DAO (even for Visual Basic!)

If this rings any bells with you, try to get that file and apply it. Sorry,
don't have the name at my finger tips. You'll find it in the INDEX.TXT file
and dated sometime in the last 10 - 12 days.

...edn

Bryce Fischer <*fisch...@ix.netcom.com> wrote in article
<01bc3996$e632d560$5d6d5ecf@starbugii>...

Quote
> I hope someone can help.  I am trying to access DAO through OLE.  When
the
> line below is executed, I get: EOleError with message "OLE error
80040112'.
>  I have even reinstalled the DAO from my MS VC++ 5.0 CD ROM, rebooted,
etc.
>  None of the documentation that I have refers to this particular error
> number.

> Any insights on this matter will be appreciated.

> =======
> ....
> var
>    db: variant;

> begin
> ....
>    db := CreateOleObject('DAO.DBEngine'); <=== EOleError:  OLE error
> 80040112
> ....
> end;
> =======

> --
> Bryce:

> Note: To reply, remove the * from my email address.  
> Do not send junk email!!!

Other Threads