Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need to find a activeX control

Status
Not open for further replies.

Rizar

Programmer
Apr 30, 2004
11
CA
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...
 
Can you not see it in the Properties window of the Project Explorer drop down? It should be listed. If it is listed you can make the property visible, or just delete it.


Gerry
 
If you show the Control Toolbox toolbar you can swith to design view, when all controls are visible.

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top