Quantcast
Channel: Microsoft Community - Super Fresh
Viewing all articles
Browse latest Browse all 1237235

Primary Key autonumber problem

$
0
0

Access 2016. Client database I created many moons ago. I assigned a Primary Key to a column entitled 'ID'; Datetype: Autonumber; New values: Increment.

I can see that new entries were given a new number up to approx. number 950 and then for some reason the Autonumber reset to zero. Now when I try to add a new entry the following message appears, as more often than not the original entry that used that ID number is still in use;

'The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship.'

I saw a video on YouTube which suggested removing the Primary Key, deleting the column, adding a column back in and assigning the Primary Key to it again. Tried to do this but then it told me i'd have to remove existing relationships. Whilst I could handle that kind of complication 15 years ago when I created the database, now I have two kids, less time, less hair and am looking for an easier solution. Can anybody help?


Viewing all articles
Browse latest Browse all 1237235

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>