Code for Random selector

M

Mike_B

I would like to create a simple database of people and
after they are entered I would like to run a code that
will randomly select a name and then move on to the next
name. Once the name has been selected I will not want to
select the name again.
 
S

Steve Schapel

Mike,

Assign each person a sequential ID number, either using an Autonumber
field, or some other numbering procedure. Then, run a query that has
this calculated field...
SelectedPerson: Int(Max([EntryID])*Rnd()+1)

- Steve Schapel, Microsoft Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top