Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TableID is to be autonumber - why? why wont it add 1

Status
Not open for further replies.

ski2sun

Technical User
Sep 12, 2001
31
0
0
US
How do I make my sql table create an autonumber ID via a a field name called TableID. What should all the components/properties be? I am trying to append using Access interface, and cannot get a record to add at the end of the table....
 
What datatype is your field currently?

Access will not add records without their being some way to identify a record uniquely.
 
it is int, 4, prim key, but is not adding new records like an autonumber or anything like that...it is 'not nullable'. please help urgently..........
 
Is the table in SQL or Access??

If it's in SQL you need to go into the design of the table and click on the field you want to act like an autonumber. Down the bottom of the design page you will have to set
Identity = yes
Identity seed = 1

If it's an Access table you need to define it as an Autonumber.

Thanks and good luck!

Transcend
 
thanks so much transcend..exactly what i needed...have a good day
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top