G
Guest
I am trying to add an activex control to a form using
code. I can get the control onto the form but cannot put
an ActiveX component into the control. I have the
following code which adds the custom control to the form.
Dim frm As Form
Dim ctl As CustomControl
Set frm = CreateForm
Set ctl = CreateControl(frm.Name,
acCustomControl, , "", "", 1000, 100)
'******
'Try to set the activex control
Set ctlText.Object = CreateObject
("InternetExplorer.Application")
DoCmd.Restore
Any suggestions?
code. I can get the control onto the form but cannot put
an ActiveX component into the control. I have the
following code which adds the custom control to the form.
Dim frm As Form
Dim ctl As CustomControl
Set frm = CreateForm
Set ctl = CreateControl(frm.Name,
acCustomControl, , "", "", 1000, 100)
'******
'Try to set the activex control
Set ctlText.Object = CreateObject
("InternetExplorer.Application")
DoCmd.Restore
Any suggestions?