Generate Random numbers

  • Thread starter Thread starter Fresh Access user
  • Start date Start date
F

Fresh Access user

Do I have any function similar to randbetween() function of Excel in MS
Access?
 
Fresh Access user said:
Do I have any function similar to randbetween() function of Excel in MS
Access?

You can roll your own using the Rnd function:

Function randbetween(lower As Integer, upper As Integer) As Integer
Randomize
randbetween = Int((upper - lower + 1) * Rnd + lower)
End Function
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top