Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I want to make a list of cons numbers(ex. 1,2,3...) in field calculator (VBA). When I am putting for example: (dim d d=[field]+1). The result is all my fields are =1. How to solve this arc map (vba).

share|improve this question

marked as duplicate by whuber Feb 24 '13 at 19:50

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Do you mean you want to populate a field with a sequential series of numbers? If so look at Calculate Field Examples. An example is provided in Python:

Calculate a sequential ID or number based on an interval.



Code Block:

def autoIncrement():
 global rec
 pStart = 1 #adjust start value, if req'd 
 pInterval = 1 #adjust interval value, if req'd
 if (rec == 0): 
  rec = pStart 
  rec = rec + pInterval 
 return rec
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.