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.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.