I'm looking to find a activex control in a form to delete it... the control in invisible...
Dim ActXCtrl as Control
Dim FormX as AccessObject
for each ActXCtrl in FormX.Properties
if ActXCtrl.name = '' ActXBtn '' Then
DeleteControl FormX.Name, ActXCtrl.Name
end if
next ObjControl
but this code isn't working at all... All I want is finding the ActiveX control and delete it...
Dim ActXCtrl as Control
Dim FormX as AccessObject
for each ActXCtrl in FormX.Properties
if ActXCtrl.name = '' ActXBtn '' Then
DeleteControl FormX.Name, ActXCtrl.Name
end if
next ObjControl
but this code isn't working at all... All I want is finding the ActiveX control and delete it...