Full Version: Primary Key is continuous with a combination of text and number
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
andrewpogi
my unique key is a combination of text and a number (e.g. AA123) what would i do in order for it to become continuous (e.g. AA123 and become AA124 in my next record).
R. Hicks
The Primary Key value should not have any meaning to you or your user ...
You should instead use an Autonumber for your Primary Key for the table ...

You can have this field combination in your database as a composite index if you like, but it should not be a composite Primary Key.

RDH
andrewpogi
thanks.gif
ScottGem
Do a seach on UA on DMAX to find ways to increment the code you want to use. But, as Ricky said it shouldn't be the PK.
R. Hicks
No problem .. wink.gif

RDH
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.