D
darren via AccessMonster.com
I am trying to randomly select a client on a form. The query behind the form
is as follows:
SELECT TOP 1 Rnd([ClientID]) AS Shuffle, tblClients.ClientID, tblClients.
Client
FROM tblClients
ORDER BY Rnd([ClientID]);
However, whenever the form is first opened it always diplays the same record,
when open a second time it always displays the same second record, etc. i.e.
it seems to always 'randomly' select the same ones in the same order???
I have put a requery command in the OnOpen event of the form. What have I
missed?
Thanks in advance?
is as follows:
SELECT TOP 1 Rnd([ClientID]) AS Shuffle, tblClients.ClientID, tblClients.
Client
FROM tblClients
ORDER BY Rnd([ClientID]);
However, whenever the form is first opened it always diplays the same record,
when open a second time it always displays the same second record, etc. i.e.
it seems to always 'randomly' select the same ones in the same order???
I have put a requery command in the OnOpen event of the form. What have I
missed?
Thanks in advance?