Hi,

You could first do a query to get the recordcount, and then do a second
query, grabbing data using the #random(1,query1.recordCount)# function of
CFML.

-Brent

-----Original Message-----
From: Melly Masram [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 9:14 PM
To: CF-Talk
Subject: (Access)Selecting randomly record


hello..

Can anyone of you help me in this prob below:

how to randomly pull out data from the database.
Let say I have 20 records in my database..and i want
to randomly pull out the data by displaying 5 records
at at a time.
Does anyone of you know how to do?
thanx...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to