I always seem to get hung up on these simple strings.Here again I don???t quite get the syntax for use in SelectLayerByAttribute_managementIf I use the following with a field named ???Name??? the query works just fineiQuery = ' "Name" = \'Joe Blogs\' ' arcpy.SelectLayerByAttribute_management(lyr, "NEW_SELECTION", iQuery)
However when I try to use a variable I can never seem to get the syntax rightiPerson = ???Joe Blogs??? iQuery = '"Name" = "' + aCenterMapOn + '"' arcpy.SelectLayerByAttribute_management(lyr, "NEW_SELECTION", iQuery)
Thanks