I am trying to use the rnd function to give me a random number as an authorization number. I only call this routine a couple of times a day and store the auth number in a table. After using this for a week, I realized that every time I close Access and reopen it, the so-called "random" number repeats itself. How can I avoid getting duplicates every time I start Access?
Here is my code:
MyValue = Int((999999 * Rnd)+1)
Here is my code:
MyValue = Int((999999 * Rnd)+1)