Assuming that you have a numeric primary key field named (say) "ID", create
a query, and type this into a fresh column in the Field row:
Rnd([ID])
Under this field, set the sorting to Ascending.
The query sorts the records randomly. You can now pair them off.
For the sort to be random, you need to issue a Randomize before running the
query. Press Ctrl+G to open the Immediate window. Enter:
Randomize
and press Enter.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Daysleeper said:
In a database I have 500 names and I want to randomly create a pair of
partner to work with each other- what is the easiest way to achieve
this.