jmecom

Linking a UIEditbox to a UIButton in ArcMap 10

Discussion created by jmecom on Jul 28, 2011
I'm somewhat a novice when it comes to the programming side of Arcmap but I need to find a specific record in an attribute table. The way I want to accomplish this is for the user to type the number in a UIEditbox and then have them click a UIButton to execute. The steps I need the code to follow is to 1. Clear any selected fields currently selected in the attribute table. (I have this code already). 2. Have the user enter the number (in my case it's TaxID) and zoom to it on the map. I'm lost when it comes to linking the UIEditbox to the UIButton to search for the number that the user entered.
This is what I have so far. Any help would be great.  Thanks.


Private Sub UIButtonControl1_Click()

Application.Document.CommandBars.Find(arcid.Query_ClearSelection).Execute

End Sub


Private Sub UIEditBoxControl1_Change()

Application.Document.CommandBars.Find(arcid.Query_ZoomToSelected).Execute

End Sub

Outcomes