L
Luke Bellamy
Hi - I have an Access 2002 runtime application and I have found an small
ActiveX control
I would like to use in it. We have many existing users.
As I undertand it I can use this 2 ways:
1. Put it on a form (which instantiates it and I can call it based on the
name in form code)
2. I can use CreateObject and dim it that way in a module.
I would really like to use the CreateObject method as I can then put error
handling
in to say "if you can't create the object, it doesn't exist so don't use
it". Then I could
make it a little nicer for existing users that don't have that ocx
registered on their computer.
If I put it on a form and a user without the ActiveX control opens the form
it would
crash and burn.
I get the CreateObject all to work OK but I run into problems now responding
to events.
The ActiveX control has an event I would like to trap. But since I can't
create the event
code nicely like in form code I don't know how I can response to events from
modules.
So my question is can I respond to events from ActiveX controls that I
CreateObject in
modules?
Thanks,
ActiveX control
I would like to use in it. We have many existing users.
As I undertand it I can use this 2 ways:
1. Put it on a form (which instantiates it and I can call it based on the
name in form code)
2. I can use CreateObject and dim it that way in a module.
I would really like to use the CreateObject method as I can then put error
handling
in to say "if you can't create the object, it doesn't exist so don't use
it". Then I could
make it a little nicer for existing users that don't have that ocx
registered on their computer.
If I put it on a form and a user without the ActiveX control opens the form
it would
crash and burn.
I get the CreateObject all to work OK but I run into problems now responding
to events.
The ActiveX control has an event I would like to trap. But since I can't
create the event
code nicely like in form code I don't know how I can response to events from
modules.
So my question is can I respond to events from ActiveX controls that I
CreateObject in
modules?
Thanks,