Event from ocx was not fired

  • Thread starter Thread starter Norbert Schiller
  • Start date Start date
N

Norbert Schiller

Hello friends,

I have a problem that I can't resolve. Would be very nice if anybody could
help me.

I have an ocx - programmed in VB6 - that only fires one event (DataChanged).
This ocx is used in a access-project (adp) on an access form. (Access XP).
No problems til now.

On my developing-PC the event was fired correctly. On an other PC with the
same Access-Version there is no event.

Maybe I forgot something to use the ocx correctly in Access. The ocx is
registered correctly.

Could anybody help me? Or is there no way to use an ActiveX-Component (ocx)
with events corrctly in Access?

Thanks a lot in advance.

Greetings,
Norbert Schiller
[mailto:nschiller]
 
I believe that you just need to use the with events keyword

make a new class... inherit the Activex control

Public WithEvents MyAx as OWC.PivotTable or something along those
lines; it's been so loong since i've had to do this

try
public with events
public withevents


and then you should be able to trap an event.

you should be able to do the same thing on a form if im not mistaken...
so you should be able to do this on a form or in a class module; but
not a regular module

-Aaron
 
Back
Top