Hi John,
Thanks for your comments. Do you know how to make this
kind of serial number based on the unique records (from
concatenation of LName, FName, DOB)? Even there may be
some duplications in certain fields, the chance is
statistically very small and can be ignored in my case.
I'm doing a calculation eyeing on about the 98% of all
records with this so called "unique" ID. Pls help if you
can.
It can be done.
IT SHOULD NOT BE DONE.
A 98% - or 99.95% - unique ID *is not a unique ID*. It's either unique
or it has potential duplicates! Why go to the effort to create a field
that you know has a likelihood of failure, when you have the choice to
create a unique numeric ID that will allow a guaranteed four billion
odd records before it duplicates?
If you want a unique Index on these three fields, create a unique
Index on the three fields. There is no need to jam them into one field
to do so. If you want to group by these three fields to do
calculations, group by these three fields to do the calculations.
That said... you can construct a nasty, redundant, useless, and
imperfect Intelligent Key by using an Update query, updating the field
to
[LName] & [FName] & Format([DOB], "mmddyyyy")
to create VinsonJohn051619456 as an ID.