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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recordset Query

Status
Not open for further replies.

TidyTrax

Programmer
Jul 11, 2001
263
AU
Does anyone hav a quick piece of code that will search a recordset from a random starting point, then pick every 100th record and discard the others?!?!?
 
Something like this ?
SELECT * FROM yourSavedQuery
WHERE Int(100*Rnd([some numeric field]))=1

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top