My tables lost their AutoNumber fields

B

Bill Nicholson

I ran an corrupted mdb through a third-party recovery utility and it
recovered the tables but it changed the AutoNumber fields to Longs, all 200
of them. Since the tables have data in them I can't simply change the field
type back to AutoNumber, at least not in the Access table designer. Any
thoughts?

Access 2000, by the way.


Thanks,

Bill
Cincinnati, OH USA
 
R

Rick B

I had a similar situation, and I created a new table and used an append
query to copy the records to it.

Rick B


I ran an corrupted mdb through a third-party recovery utility and it
recovered the tables but it changed the AutoNumber fields to Longs, all 200
of them. Since the tables have data in them I can't simply change the field
type back to AutoNumber, at least not in the Access table designer. Any
thoughts?

Access 2000, by the way.


Thanks,

Bill
Cincinnati, OH USA
 
R

Rick Brandt

Bill Nicholson said:
I ran an corrupted mdb through a third-party recovery utility and it
recovered the tables but it changed the AutoNumber fields to Longs, all 200
of them. Since the tables have data in them I can't simply change the field
type back to AutoNumber, at least not in the Access table designer. Any
thoughts?

Access 2000, by the way.

Create new blank tables with the same structure (except with AutoNumber fields)
and then run append queries to push the data into the new tables. MAKE SURE you
include the existing long values in the append so the new table will retain
those values rather than assigning AutoNumber values to them.

You would of course have to rebuild all of your relationships with the new
tables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top