Ran
In SQL Server, the following script will create an auto
numbered field called 'TestAutoNo', starting at 1 and
incrementing by 1.
CREATE TABLE [dbo].[Table1] (
[TestAutoNo] [numeric](18, 0) IDENTITY (1, 1) NOT
NULL
) ON [PRIMARY]
GO
If you are using an Access ADP, just set 'identity' to
yes, identity seed to 1 and identity increment to 1, while
maintaining the table to acheive the same thing.
Jim
-----Original Message-----
how can I define auto number datatype ?
thanks
Ran
.