primary key ids

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Access Training and help » Primary Key IDs

Primary Key IDs

resolvedResolved · High Priority · Version 2007

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

RE: Primary Key IDs

Hi Simon,

Thanks for your help.

Regards,
Rob


 

Access tip:

Combo box for finding records

You can use a combo box in a form to look up a record. If you place the comb box in the Form header, by then selcting they a field type from the drop down loist, you will see the record for it

View all Access hints and tips


Server loaded in 0.11 secs.