Robert has attended:
Access Intermediate course
Primary Key IDs
I'm trying to add a new entry into the database. Previously this would be done either by form or in the table itself, and a new ID would be generated for the new entry.
However now, it is generating duplicate numbers on the ID and creating errors. I have looked in design view > indexing and 'no duplicates' is turned on.
Please advise
RE: Primary Key IDs
Hi Robert,
Thank you for your question and welcome to the forum.
What is the Data Type for the field? Maybe the number of records have exceeded the maximum amount.
Regards
Simon
RE: Primary Key IDs
Hi Simon,
Thanks for the response.
The data type for the id field is autonumber, field size long integer and new values are increments. The record numbers aren't in excess of 3000
Regards,
Rob
RE: Primary Key IDs
Hi Rob,
Is it possible to send me a copy of the database to sk@stl-training.co.uk?
Regards
Simon
RE: Primary Key IDs
Simon,
Would rather not as the database contains sensitive information. However, I somehow managed to rectify the issue today by just saving a copy. However this copy is now about half the file size of the original yet no data is missing.
Understandably I am happy but this does strike me as rather odd. Do you have any insight into this?
Regards,
Rob
RE: Primary Key IDs
Hi Robert,
Thank you for your response.
It may be that the database was compacted on close which may have contributed to the smaller file size.
Regards
Simon