0

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.

3
  • Doesnt seem possible: gis.stackexchange.com/questions/90697/… . It is possible using arcpy though, does it have to be Field Calculator?
    – Bera
    Commented 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/…
    – FelixIP
    Commented 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.
    – Vince
    Commented Dec 29, 2021 at 2:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.