I have a table of about 20000 records. I want to randomly select 100 records from the 20000 and echo the 100 records to a report. I have also included a Yes/No field type. This will be used to identify the 100 selected records. I have created an ID (Autonumber) field marking the number of records (1 thru 20000). This is wat I have so far....
Dim MyValue
Dim ctr As Integer
ctr = 1
Do While ctr <> 100
MyValue = Int((20000 * Rnd) + 1)
ctr = ctr + 1
Loop
My dilemna is how do I associate the content of MyValue to the ID field so that I can run a query to update the Yes/No field?
Please help and advise.
Thanks.
Dim MyValue
Dim ctr As Integer
ctr = 1
Do While ctr <> 100
MyValue = Int((20000 * Rnd) + 1)
ctr = ctr + 1
Loop
My dilemna is how do I associate the content of MyValue to the ID field so that I can run a query to update the Yes/No field?
Please help and advise.
Thanks.