Open OCX

  • Thread starter Thread starter ras
  • Start date Start date
R

ras

I know how to place an OCX on a form but I would like to open this
directly without placing the component on a form. I would then be
able to use the functions built into the ocx. In php it would be
something like createserverobject("ocxcomponent") but I can't find any
equivilant to use with vba in access.
 
Pretty much the same same in VB / VBA

Dim com as Object
Set com = CreateObject("MSCommLib.MSComm")

Now you are all set to use the MS ActiveX Serial Port control.

When you are all done using the resource

Set com = Nothing

Disposes the object

Rdub
 
Back
Top