Random Select

  • Thread starter Thread starter SharonK
  • Start date Start date
S

SharonK

I need to randomly select x number of records from a table. I'm not
interested in writing a VBA module - isn't there some simple function or sql
statement that works???
 
SharonK said:
I need to randomly select x number of records from a table. I'm not
interested in writing a VBA module - isn't there some simple function or sql
statement that works???

SELECT TOP x *
FROM yourTable
ORDER BY Rnd(numberField)


mfG
--> stefan <--
 
SharonK said:
I need to randomly select x number of records from a table. I'm not
interested in writing a VBA module - isn't there some simple function or
sql
statement that works???
 

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

Similar Threads


Back
Top