sql in ms-access [closed]

For a start, you need something like:

SELECT TOP 5
    ID, 
    [Case ID], 
    [Owner], 
    Rnd(-Timer()*[ID]) AS RandomRecord
FROM 
    [Cases]
ORDER BY 
    Rnd(-Timer()*[ID]);

to be used as a subquery filtered on OwnerID of your Owners’ table.

I once posted an article on this with a lot more details:

Random Rows in Microsoft Access

Leave a Comment