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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Auto Number

Status
Not open for further replies.

woro2006

IS-IT--Management
Dec 24, 2006
18
US
I changed the field data type from autonumber to number, but I'd like to change it back. When I tried, I am getting an error.
"Once you enter data in a table, you can't change the data type of any field to AutoNumber, even if you haven't yet added data to that field.

Any ideas?
 
Delete the row and then insert another. Make that autonumber and problem solved. Well it always works for me.
 
Yeah, but I removed records from the original table. The ids are not sequentially ordered (1,2,3,5,7,10). If I add a new autonumber, the ids will not match up. I need the autonumber to restart on the last id of the field.
 
I would create a new table with the same structure except the new table would have the autonumber. Then append the old table into new table. Rename the old table then rename the new table to the old table name.

Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top