Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

select random entries

Status
Not open for further replies.

jvolden

IS-IT--Management
Jan 26, 2005
77
US
Is there a way to select values from a field randomly. I have a field {table.clientcompany}. I want it to pull values from this field at complete random to display in a report.

Thank you.
 
Create a formula, Rnd() and drop it into the detail line. This will assign a random value between 0 and 1 to every record. Then do a sort on the formula, either ascending or descending will work. Then you can use conditional formatting to suppress the records you don’t want to see. For example, RecordNumber >= 50 would show you 50 random results.
 
Thank you, this worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top