"Jerry" <js*****@nospam.please> wrote in
news:xA***************@newsread2.news.atl.earthlin k.net:
Say a record has 15 fields. Is there a better way to check for a
duplicate when entering a new record than fourteen "Ands" in the
where clause of DCount or FindFirst?
Are all 15 fields required? If not, then the index you need for
determining duplicates is actually smaller, since only the required
fields should be used for determining duplicates (Nulls can't occur
in unique indexes and still guarantee uniqueness).
I for one have never had a table where 15 fields were required for
determining uniqueness -- a natural key with that many fields
suggests a severely denormalized table structure to me.
--
David W. Fenton
http://www.bway.net/~dfenton
dfenton at bway dot net
http://www.bway.net/~dfassoc