Dec 8, 2002 #1 ain79 Programmer Nov 16, 2002 12 PK hello i want to rendomize records stored in a table and then show them in a list box or any thing else any idea.
hello i want to rendomize records stored in a table and then show them in a list box or any thing else any idea.
Dec 11, 2002 #2 brucerichards Programmer May 3, 2001 3 GB Add a flag to each record, say called selected. Open a recordset of all data where selected is false. Get a random number based on the number of records in the recordset. e.g. Int((MyRecordset.Recordcount - 1) * Rnd + 1) Move through the recordset that many times, get the data and set the new flag 'selected' to true Repeat the process until the record count is 0. Upvote 0 Downvote
Add a flag to each record, say called selected. Open a recordset of all data where selected is false. Get a random number based on the number of records in the recordset. e.g. Int((MyRecordset.Recordcount - 1) * Rnd + 1) Move through the recordset that many times, get the data and set the new flag 'selected' to true Repeat the process until the record count is 0.