Really Stuck - Access MDB and Primary Keys

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have an MDB database and am using tableadapters, etc. I have the primary
keys in the database as NUMBER (not autonumber). When you hit the ADD button
on the datanavigator, it of course selected what it thinks is the next key.
But when I go to save the record, it fails. Access won't take the new key
even though that key is not in the current database (but was once used and
deleted).

I am so confused about what to do here. Any help would be apreciated.
 
HI,

Chris said:
I have an MDB database and am using tableadapters, etc. I have the primary
keys in the database as NUMBER (not autonumber).

Why don't you make it as autonumber?
If not you will have to manually assign a value.
 

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