Anyone with any ideas on how to create a custom auto-incremented number in Access to be used as a primary key? I want to have a number that starts with the last 2 digits of the current year then a 3 digit auto incremented number. ie. 01-001, 01-002, etc.
RogerC, if I were you I would NOT use this field as your primary key. Use a regular autonumber field as the PK and this field only for end user consumption.
One good reason is it's a text field. These take more space and are slower to process than numeric fields. Another good reason is that primary keys should not be thought of as something that has meaning. They are a means for Access to address or uniquely identify each record. They have not meaning.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.