I was able to generate a random list of records by using the following:
Code:
Function Randomizer() As Integer
Static AlreadyDone As Integer
If AlreadyDone = False Then Randomize: AlreadyDone = True
Randomizer = 0
End Function
Code:
SELECT Top 3 Rnd(IsNull([enrichment].[ID])*0+1) AS Expr1, Enrichment.Animal, Enrichment.Catagory, Enrichment.Item, Enrichment.Comments, Enrichment.[Rating (1-3)]
FROM Enrichment
WHERE (((Randomizer())=0))
GROUP BY Rnd(IsNull([enrichment].[ID])*0+1), Enrichment.Animal, Enrichment.Catagory, Enrichment.Item, Enrichment.Comments, Enrichment.[Rating (1-3)]
ORDER BY Rnd(IsNull([enrichment].[ID])*0+1);
This works really well but I am still unable to specify DISTINCT values of "animals" basically I want it to look like this
From this:
Code:
1, a, c,
1, r, t,
2, h, e,
3, l, d,
Ect...
To This:
Code:
1, r, t,
2, h, e,
3, l, d,