Jet database: Add new 'Key' column

  • Thread starter Thread starter johnb41
  • Start date Start date
J

johnb41

In my new app (close to complete, yay!) I am using data from an
existing Jet database. This database i have used for almost a year, so
it already has a bunch of existing data.

This database has a table that does NOT have a 'key' column. My app
really needs the table to have a 'key' column... preferably one that is
auto-incrementing.

Anyway, in Access, it allows me to add a column, but it will not let me
make it auto-numbering. I get an error saying that i cannot do it
because data already exists in my database. Also I cannot make a new
column a 'key' because when i save the table, an error says i cannot
have "null" values.

Do I have to create a new table from scratch? Please say it ain't so!!

Thanks,
John
 
John,

I just tried adding an AutoNumber column to a table in Access 2002 and it
worked without problems.

Kerry Moorman
 
I used Access 2003. I cannot have an Autonumber field unless i start a
table from scratch. Hmmm....

John
 

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

Back
Top