Random Select

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???
 
S

Stefan Hoffmann

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 <--
 
H

Howard Burgman

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???
 
Top