I'm looking for a VB or Python field calculator expression in ArcMap that will calculate the Highest Value + 1 into the same field named Corr_ID. I was thinking something as simple as this max(!Corr_ID!)+1
but I think the max function requires more than one field. I can't use an Incrementing ID because some of the records need to have the same value.
-
Doesnt seem possible: gis.stackexchange.com/questions/90697/… . It is possible using arcpy though, does it have to be Field Calculator?– BeraCommented Dec 28, 2021 at 18:11
-
Doable if you are happy with layer name to be hard coded e.g. gis.stackexchange.com/questions/193681/…– FelixIPCommented Dec 28, 2021 at 18:55
-
It's certainly possible, just not terribly efficient (and could corrupt enterprise tables, where IDs aren't always sequentially allocated). If you initialize a global value from a SearchCursor/sort/tail inline you'll have a starting place.– VinceCommented Dec 29, 2021 at 2:21
Add a comment
|