I have the below code that generates a random number that will eventually be placed in a barcode. The code works great while you have the prgram open, however when you close it and then reopen it generates the same number as it did before it closed. Any ideas why this is happening?
Code:Forms![main]!text143.value = 1 + int(100000 * rnd())