F
faxylady
This Question is directed toware John Vinson.
A while back, I asked for a solution to find random records for mailing
throughout a 100,000+ database. You told me to put the following into a
module:
Public Function RndNum(vIgnore As Variant) As Double
Static bRnd As Boolean
If Not bRnd Then
'Initialize the random number generator once only
bRnd = True
Randomize
End If
RndNum = Rnd()
End Function
and in a calculate field put:
Shuffle: RndNum([fieldname])
This did work in that the results did give me records that were distributed
throughout the table.
However, to do another set of records that are different from the first
group, what do I need to do?
I have tried to do a make table query of the 1st group, then use the same
query to delete those same records by means of a delete query. However, when
I tried to enter the Top Value in the delete query, Access would not let me.
There was no Top Value in the Properties.
What do you suggest so that I can generate different records each time?
Thanks. Your responses are always good.
A while back, I asked for a solution to find random records for mailing
throughout a 100,000+ database. You told me to put the following into a
module:
Public Function RndNum(vIgnore As Variant) As Double
Static bRnd As Boolean
If Not bRnd Then
'Initialize the random number generator once only
bRnd = True
Randomize
End If
RndNum = Rnd()
End Function
and in a calculate field put:
Shuffle: RndNum([fieldname])
This did work in that the results did give me records that were distributed
throughout the table.
However, to do another set of records that are different from the first
group, what do I need to do?
I have tried to do a make table query of the 1st group, then use the same
query to delete those same records by means of a delete query. However, when
I tried to enter the Top Value in the delete query, Access would not let me.
There was no Top Value in the Properties.
What do you suggest so that I can generate different records each time?
Thanks. Your responses are always good.