D
Di
I have a table with 50,000 names and need to run a query that will
give me 10,000 randomly picked names (this will change periodically).
I have seen this code in some Access group, but need more specifics:
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
Since I'm a newbie at this, I was hoping someone could offer me a more
step-by-step type of assistance. Keep in mind that I'm not a
programmer, just a gal trying learn something new for her job. Any
help on how I can accomplish this task would be greatly appreciated.
Thank you so much,
Diane
give me 10,000 randomly picked names (this will change periodically).
I have seen this code in some Access group, but need more specifics:
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
Since I'm a newbie at this, I was hoping someone could offer me a more
step-by-step type of assistance. Keep in mind that I'm not a
programmer, just a gal trying learn something new for her job. Any
help on how I can accomplish this task would be greatly appreciated.
Thank you so much,
Diane