I have created a field with data type as AUTO NUMBER in the format T-{0}.
When i have created more than 9 records i was expecting the numbering to start again from 1. But i found it to be incrementing to 10,11,12..........and so on. I am a bit startled. Why is this happening? Can anyone explain it. What happens FOR T-{000}, T-{0000}?
--THANKS IN ADVANCE --
Krish,
Here you have more details on Auto format -
https://na2.salesforce.com/setup/ui/whatisdisplayformat.jspWhat Is a Display Format?
_img src="
https://na2.salesforce.com/s.gif" /_
A Display Format allows you to control the appearance of the Auto Number field. A Display Format consists of the substitution variables described below, plus any other characters you wish to include as a prefix or suffix.
Substitution Variables in Display Format{0}
Required
Sequence number. One or more zeros enclosed in curly braces represent the sequence number itself. The number of zeros in the curly braces dictates the minimum number of digits that will be displayed. If the actual number has fewer digits than this, it will be padded with leading zeros. Maximum is 10 digits.
{YY}
{YYYY}
Optional
Year. 2 or 4 "Y" characters enclosed in curly braces represent the year of the record creation date. You can display 2 digits (for example, "04") or all 4 digits (for example, "2004") of the year.
{MM}
Optional
Month. 2 "M" characters enclosed in curly braces represent the numeric month (for example, "01" for January, "02" for February) of the record creation date.
{DD}
Optional
Day. 2 "D" characters enclosed in curly braces represent the numeric day of the month (for example, "01" to "31" are valid days in January) of the record creation date.
Examples
Display Format
Sequence Number
Formatted Number
Comments
{0}
1
2505000
1
2505000
No formatting. No leading zeros.
{000}
1
2505000
001
2505000
With leading zeros padded to 3 digits.
{000000}
1
2505000
000001
000250005000
With leading zeros padded to 6 digits.
{YYYY}{MM}-{0}
1
2505000
201208-1
201208-250201208-5000
4-digit year and month used as prefix to number.
PO# {00000000}
1
2505000
PO# 00000001
PO# 00000250PO# 00005000
Prefix with "PO# " (including space.)
_img alt="Notes" src="
https://na2.salesforce.com/img/notes.gif" /_
If you modify the Display Format of an existing field, only records created after the change will be affected.