CutAndPaste
Registered User.
- Local time
- Today, 10:49
- Joined
- Jul 16, 2001
- Messages
- 60
I often need to generate random numbers within a given range to populate a table with test info. I've managed this fine with numbers in a function using something like:
Me.Field1 = Int((8 * Rnd()) + 1)'Generates random value between 1 and 8
However I can't seem to do this with dates. I need to specifiy and end and start date and generate a random date between these values. how do I do this?
Thanks
Me.Field1 = Int((8 * Rnd()) + 1)'Generates random value between 1 and 8
However I can't seem to do this with dates. I need to specifiy and end and start date and generate a random date between these values. how do I do this?
Thanks