Hi Ian. I can not speak English. I am translating with google. I am very interested in adapting your script. Features-I have a class and I've added a field ID String. But when I run I get an error that I believe is in the syntax of the Query. To work with a personal geodatabase. I get the following error:
Traceback (most recent call last):
File "D:\A-Fichas\ZoomToID.py\ZoomToID.py", line 23, in <module>
arcpy.SelectLayerByAttribute_management(Layer, "NEW_SELECTION" , "ID = " + ID)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 6494, in SelectLayerByAttribute
raise e
ExecuteError: ERROR 000358: Expresión no válida
Falló al ejecutar (SelectLayerByAttribute).
Falló al ejecutar (ZoomToSelectedID).
Error el Tue Jul 15 12:01:25 2014 (Tiempo transcurrido: 0,56 segundos)
I could clarify the syntax of the query?. Thank you very much from Spain.