How can I set up attributes for an autonumber field

I did like this but no work


with rstNew

.Fields .CreateField("Field1", dbLong)
Field1.Attributes = dbAutoIncrfield

End With

Thsi field suppose to be indexed