AnsweredAssumed Answered

How can i replace "FieldName" with [FieldName] for a Layer in a Geodatabase

Question asked by GISGURU_001 on Aug 31, 2012
Latest reply on Sep 4, 2012 by jskinner-esristaff
How can i replace "FieldName" with [FieldName] for a Layer in a Geodatabase i.e;


Replace;
arcpy.SelectLayerByAttribute_management("Parcels", "NEW_SELECTION", '"TDPDetails"' + "=" + "'" + selection + "'")


With
arcpy.SelectLayerByAttribute_management("Parcels", "NEW_SELECTION", [TDPDetails] + "=" + "'" + selection + "'")


Any suggestions? Thanks

Outcomes