Where do I get an access template for random generating

R

random generator's

I would like a template in access or excel for random generating. ie. I need
to eat.... then a field would come up with the random generated answer from a
list i've put in. Thanks in advance
 
J

John Vinson

I would like a template in access or excel for random generating. ie. I need
to eat.... then a field would come up with the random generated answer from a
list i've put in. Thanks in advance

Well, you don't need a *template* to do this, and you're not going to
find one!

Instead, you need a Query. Create a Query based on your list; set its
Top Values property to 1; and in a vacant Field cell type

Shuffle: Rnd([SomeFieldName])

where you use the name of some non-negative numeric field (such as a
sequential autonumber ID). Sort by this field (ascending or
descending, doesn't matter) and you'll get a randomly selected record.

John W. Vinson[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