Passing a field to the Rnd() function in a query is not so random because each time you start Access and run the query, the same 300 records will be returned.hello
i found easy solution to this problem
SELECT TOP 300 *
FROM Tabela
ORDER BY Rnd([ID_Zapis])
Function Randomizer() As Integer
'by Joe Foster
'see [url]http://www.mvps.org/access/queries/qry0011.htm[/url]
Static AlreadyDone As Integer
If AlreadyDone = False Then Randomize: AlreadyDone = True
Randomizer = 0
End Function
SELECT TOP 25 Orders.OrderID, Orders.EmployeeID, Orders.OrderDate
FROM Orders
WHERE (((randomizer())=0))
ORDER BY Rnd(IsNull([Orders].[OrderID])*0+1);