Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Record fetch

Status
Not open for further replies.

Wajid55

Programmer
Apr 6, 2006
48
CA
Hi,

I am trying to populate an Access Form by randomly fetching one record from a table.

Is there any help avaialble about it.

Thanks
 
One way (SQL code):
SELECT TOP 1 * FROM yourTable ORDER BY Rnd([some numeric field])

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks it is working. I have a quiz DB and I am trying to loop through the questions randomly. I want to fetch questions randomly once the user clicks a confirm button.

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top