This content has been marked as final. Show 4 replies
I haven't used Arc 10 yet, but could you maybe create a new integer field and make it equal to ObjectID, then use this new field as the reference for your NewField + 1 expression?
SaultDon, thanks for your reply unfortunatly your idea won't work if i set a new field to = [OBJECTID] it comes up with nothing.
i used to use FID + 1 (as the first FID always equal to 0)
UPDATE: this still works with a stand alone shp file as this still has the FID field. If my file is in a geodatabase there is no FID only OBJECTID
Shapefiles include a FID, which starts at 0. Geodadabase tables and feature classes include an OBJECTID, which initially starts at 1. If the first row(s) are deleted it will no longer start at 1. It will always be ordered and unique.
What flavor of the geodatabase are you using? File Geodatabase, Personal Geodatabase, ArcSDE? If ArcSDE, which RDBMS.
What version of Windows?
lshipman thanks for your reply, tried this again today with both file and personal geodatabases and it worked fine. Arc must have just been playing up yesterday as my fields kept refusing to update.