R
Rockn
I am trying to create a random Job number when my form loads using the
onLoad event to process this:
Me.Textfield = Format(Date, "mmddyyyy") & "" & Int((99 - 1 + 1) * Rnd() + 1)
Which will create a job number like 08212007** with the last two numbers
being "random". The numbers are created fine, but ALWAYS the same numbers
are generated on the initial load and subsequent loads of the form as
follows:
0821200770
0821200753
0821200758
0821200729
0821200730
and so on. I guess it really isn't a random number function in it's truest
sense.
onLoad event to process this:
Me.Textfield = Format(Date, "mmddyyyy") & "" & Int((99 - 1 + 1) * Rnd() + 1)
Which will create a job number like 08212007** with the last two numbers
being "random". The numbers are created fine, but ALWAYS the same numbers
are generated on the initial load and subsequent loads of the form as
follows:
0821200770
0821200753
0821200758
0821200729
0821200730
and so on. I guess it really isn't a random number function in it's truest
sense.