on-internet
← Community

Autonumber - start from ZERO

Stack Overflow ·

So, I know how to add an autonumber field to a table using SQL: dblocal.Data.Execute "CREATE TABLE " & TableName & " (" & FieldName & " COUNTER(1,1) )" Where dblocal is the passed database reference with TableName & FieldName the appropriate names for the desired creation of the table. However, I want the counter to start at ZERO not ONE. And I know it's possible because the table I need to repair / duplicate starts with ZERO What am I not finding on the internet to aid me in this task? My search-fu fails me. --- edit many months later: Just why did not I realize that using the AUTOINCREMENT(0

Comments

Sign in or sign up to comment and upvote.

No comments yet.