Setting Autoincrementing Field Values
You can turn on autoincrementing for fields of Integer type in a database container (DBC) or free table by using the Table Designer or the AUTOINC clause in the CREATE TABLE - SQL and ALTER TABLE - SQL commands. For more information about using the AUTOINC option, see CREATE TABLE - SQL Command and ALTER TABLE - SQL Command.
To enable autoincrementing for a new field using the Table Designer
- Create a new table, or open an existing table.
- In the Table Designer, click the Fields tab.
- Create the field for which you want to enable autoincrementing.
- In the Type drop-down list for the field, select Integer (AutoInc).
- In the AutoIncrement group box, choose a start value for Next Value and an increment value for Step.
- Create another field, if desired, or click OK to finish.
To enable autoincrementing for an existing field using the Table Designer
- Open an existing table.
- In the Table Designer, click the Fields tab.
- Select the field for which you want to enable autoincrementing.
- In the Type drop-down list for the field, select Integer (AutoInc).
- In the AutoIncrement group box, choose a start value for Next Value and an increment value for Step.
- Select another field for setting autoincrementing, if desired, or click OK to finish.
See Also
Field Creation | Autoincrementing Field Values in Tables | Fields Tab, Table Designer | Adding Fields | Editing Fields