Hi,
Use randomly generated autonumber as primary key and thus you can
say randomness has been implied
More seriously, indeed, if the price cannot be split in three, I
would rather not let a database decides who is the winner, and I would list
the 3 records that are TOP 1... a database being a tool to extract data. It
is just too easy to get the same sequence of random numbers over and over,
even a developer with good intention may just produce code that makes no
more sense, at the end, that just using a fixed primary key as tie-breaker.
There are also cases where getting just one, any, of the three is
all what is needed... it is even the default with MS SQL Server, "no
question asked", not even a hint of the existence of a possible "tie". I
assume the original poster was in one of this scenario, since explicitly in
the message, the existence of possible ties was mentioned, and was not
desired/desirable.
Vanderghast, Access MVP