Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Random Number Generator

Status
Not open for further replies.

GreenFella

Programmer
Oct 23, 2001
41
0
0
CA
I was hoping to generate Random numbers within Access VBA but was unsure of how to go about this.

The RND() function does not do the trick. Nor did the RANDOMBETWEEN function.

Any light that can be shed would be greatly appreciated.

Thanks
Greenfella
 
GreenFella

the Ubiquitous [[b{F1}
(aka HELP)provides sufficient info on both function for any 'professional'.





MichaelRed
mlred@verizon.net

 
Did you try something like:

Public Function Rand()
Dim MyValue
Randomize
MyValue = Rnd()
MsgBox MyValue
End Function
 
Thanks for your help sfreeman.

That did the trick.

My Ubiquitous [[b{F1} (aka HELP) didn't list any details regarding Randomize or RND().

Guess the full help guide isn't installed on this machine.

Greenfella
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top