Re: class events stop firing with ADO 2.8
From: keepITcool (xrrcvgpbby_at_puryyb.ay)
Date: 11/14/04
- Next message: Harald Staff: "Re: ADODB Question"
- Previous message: adropinabucket: "Re: routine to convert to date format"
- In reply to: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Next in thread: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Reply: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 13 Nov 2004 16:20:27 -0800
so.. you do have a referencing problem...
also your use of ADO and ADOX is confusing.
ADO would be Microsoft ActiveX Data Objects 2.8 Library
ADOX would be MS ADO Ext.2.8 for DLL and Security
First you'd need to save the addin when the references
both to ADO and ADOX are in sync, and to the "lowest" possible version.
Perhaps it's an idea to rewrite all adox calls/object
to LATEBOUND, and remove all adox references.
(although this would mean a performance loss when objects are created,
I assume you wouldnt have that many adox calls,most of what you can do
with ADOX you can do with ADO's openschema and generally faster too.
Changing code to "late-binding":
Change all 'typed' adox object declarations to OBJECT
Change lines like
set adoxCAT = new adox.catalog
to
set adoxCAT = createobject("adox.catalog")
Change
all adox constants
to
their numeric values.
HTH
--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam
ThankYou_jeff wrote :
> Thanks but there are no missing references; other than perhaps the
> "MS ADO Ext.2.7 for DLL and Security" which is automatically updated
> to "MS ADO Ext.2.8 for DLL and Security" when the Add-in is manually
> opened in the VB IDE [Alt-F11]. Once that reference is replaced the
> Add-in works for ADO 2.8. Then, of course, the Add-in will not work
> at all for ADO 2.7 {since "MS ADO Ext.2.8 for DLL and Security" is
> truely missing. VB IDE won't automatically downgrade to 2.7}.
>
> "keepITcool" wrote:
>
> > Check your references in VBE.
> >
> > if ANY reference is listed as ISMISSING this may well cause the
> > hiccup.
> >
> >
> >
> >
> >
> > --
> > keepITcool
> > > www.XLsupport.com | keepITcool chello nl | amsterdam
> >
> >
> > ThankYou_jeff wrote :
> >
> > > Excel add-in has been working for 2 years using ado 2.7; it fails
> > > on ado 2.8. Here's stripped down version that displays message
> > > boxes
- Next message: Harald Staff: "Re: ADODB Question"
- Previous message: adropinabucket: "Re: routine to convert to date format"
- In reply to: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Next in thread: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Reply: ThankYou_jeff: "Re: class events stop firing with ADO 2.8"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|