query for random records

B

_Bigred

Is there a way to pull up random records using a query?

I am creating a guitar practice database, and would like to pull up random
records contained in the db.

Would like to set this feature to a report and then other buttons also.

TIA,
_Bigred
 
G

Guest

Put something like this in the field of a query:

RandomRecords: Rnd(IsNull(asa.AsaID)*0+1)

Change "asa" to the name of the table and "AsaID" to the name of a number
field. Sort on RandomRecords.
 
B

_Bigred

Thanks Jerry.



Jerry Whittle said:
Put something like this in the field of a query:

RandomRecords: Rnd(IsNull(asa.AsaID)*0+1)

Change "asa" to the name of the table and "AsaID" to the name of a number
field. Sort on RandomRecords.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top