Nov 17, 2004 #1 gregmw MIS Jun 11, 2002 23 NZ Does anyone know if it is possible to create a random sample from a query in access? I need 4 samples from a table that will change each month. Any help would be great Thanks
Does anyone know if it is possible to create a random sample from a query in access? I need 4 samples from a table that will change each month. Any help would be great Thanks
Nov 17, 2004 1 #2 PHV MIS Nov 8, 2002 53,708 FR SELECT TOP 4 * FROM yourQuery ORDER BY Rnd([some unique number from the select list]) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
SELECT TOP 4 * FROM yourQuery ORDER BY Rnd([some unique number from the select list]) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Nov 17, 2004 Thread starter #3 gregmw MIS Jun 11, 2002 23 NZ Cheers phv, very clever, it works perfectly. Upvote 0 Downvote