Event from ocx was not fired

  • Thread starter Norbert Schiller
  • 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]
 
D

dbahooker

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top