Hello,
I'm not sure whether this is the right place to put this.
I am using the NEAR tool. It puts the distances in NEAR_DIST. What I would like to do, is to rename NEAR_DIST to something more descriptive like DIST_TO_STORE. I have tried creating a new field DIST_TO_STORE. Then I tried copying the contents of NEAR_DIST to DIST_TO_STORE, but it does not work.
Here is my code:
arcpy.AddField_management("Data2007WithDist", "DIST_TO_STORE", "LONG", 9, "", "", "refcode", "NULLABLE", "REQUIRED")
arcpy.CalculateField_management("Data2007WithDist", "DIST_TO_STORE", '!NEAR_DIST!', "PYTHON")
What am I doing wrong? I just get an error:
WARNING 000405: No records within table
HELP!!!
Pete