If it crashes on this line:
arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION", + Next)
Its because + Next (An Integer only) is not a valid SQL query. It looks much better further down:
arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION", "Page = '" + text + "'")
First off, can I just ask what the error might be. When the python window is open.
Hi Adina,I am going to help you work through this.
I am just saw this cross my screen and want to take a look at this later. So currently this does not help you, but I will come back and assist. Promise!
I have done similar work with python add ins in the past. I can share my technique with combobox and data driven pages.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.