Lanason
Registered User.
- Local time
- Today, 04:08
- Joined
- Sep 12, 2003
- Messages
- 258
I want to randomly select a number of records from my dataset - (to perform random Stock Checking)
Say 50 records each time - but randomly
I thought about putting a random number in each record and then selecting top top 50 records after sorting in order by the random number.
Q:- how do I write a loop to look at each record - something like below ???
[test 2] = Rnd
For x = 1 To Count <---- this is wrong !!
DoCmd.GoToRecord , , acNext
[test 2] = Rnd
Next
Say 50 records each time - but randomly
I thought about putting a random number in each record and then selecting top top 50 records after sorting in order by the random number.
Q:- how do I write a loop to look at each record - something like below ???
[test 2] = Rnd
For x = 1 To Count <---- this is wrong !!
DoCmd.GoToRecord , , acNext
[test 2] = Rnd
Next