[AccessD] Load ActiveX control in VBA instead of putting on a form.

Jim DeMarco Jdemarco at hshhp.org
Wed Oct 15 07:51:37 CDT 2003


Yes I realized that after I sent this.  Maybe Erwin is having trouble with the correct syntax for using an ocx this way.  Should be libraryname.class name as in:

Dim oMyObject as MyLibrary.MyClass

or a common use I've seen is with the Winsock libary:

Private WithEvents wscControl As MSWinsockLib.Winsock

HTH,

Jim DeMarco

-----Original Message-----
From: Drew Wutka [mailto:DWUTKA at marlow.com]
Sent: Tuesday, October 14, 2003 4:52 PM
To: 'Access Developers discussion and problem solving'
Subject: RE: [AccessD] Load ActiveX control in VBA instead of putting on
a form.


If events are used, then they need to be in a Class Module.  Forms are Class
modules, so they can handle the events, but you can use just a plain class
module to reference an activeX control with events.

Drew

-----Original Message-----
From: Jim DeMarco [mailto:Jdemarco at hshhp.org]
Sent: Friday, October 10, 2003 7:11 AM
To: Access Developers discussion and problem solving
Subject: RE: [AccessD] Load ActiveX control in VBA instead of putting on
a form.


Don't controls (ActiveX or otherwise) always need a host (form)?  How is it
possible in VB?

Jim DeMarco 
Director of Product Development 
HealthSource/Hudson Health Plan 

-----Original Message-----
From: Erwin Craps [mailto:Erwin.Craps at ithelps.be]
Sent: Friday, October 10, 2003 5:27 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Load ActiveX control in VBA instead of putting on a form.



I tought it was posible to load an activex control in VBA so a form is not
needed.
I cant seem to find the right command for this.
Maybe I'm mistaking that this is only posible in VB.



Erwin Craps
Zaakvoerder 
www.ithelps.be/jonathan



****************************************************************************
*******
"This electronic message is intended to be for the use only of the named
recipient, and may contain information from Hudson Health Plan (HHP) that is
confidential or privileged.  If you are not the intended recipient, you are
hereby notified that any disclosure, copying, distribution or use of the
contents of this message is strictly prohibited.  If you have received this
message in error or are not the named recipient, please notify us
immediately, either by contacting the sender at the electronic mail address
noted above or calling HHP at (914) 631-1611. If you are not the intended
recipient, please do not forward this email to anyone, and delete and
destroy all copies of this message.  Thank You".
****************************************************************************
*******

_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com


***********************************************************************************
"This electronic message is intended to be for the use only of the named recipient, and may contain information from Hudson Health Plan (HHP) that is confidential or privileged.  If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited.  If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message.  Thank You".
***********************************************************************************



More information about the AccessD mailing list