Random Result from Database
For those of you who read the previous post:
I've moved forward a bit, and now need what *should be* a relatively simple question answered.
How do I request a specific record from a particular field randomly?
I.E. Say I wish to pull a random record from table A, Field 1, where field 1 has 50 records.
I thought perhaps utilizing the Int(Rnd * #)+1 process would work for this, (Where the Int is used to pull a record by ID#/Field) but as it turns out, I can't seem to find any reference material to tell me what I need to use to accomplish this. Does anyone of you folks have an idea?
(Further - If I perhaps wanted to choose a random record from a random field, what process would I use to do this? (Say I wanted to pull a random record 1-50, from random Field 1-3, on Table "Example")
(Further further - From Random Table A-C?)
Any help would be appreciated. (I now understand the basics of database accessing)
|