Hi all (I've also posted this on another forum as it's doing my brain in!) 
Problem:
Running the above function will produce the following numbers:-
7349927, 5800816, 6215667, 3606062.
If the table (which stores the data) is cleared and the database is compacted, the function repeats the numbers in the same sequence:-
7349927, 5800816, 6215667, 3606062.
I've also created a new database and just running the function (no tables). The same numbers appear. When I compact the DB they repeat again.
Questions:
1) Are these numbers stored in my profile only?
2) Are these numbers preset within Access?
3) As a test, can someone else run the above and see what numbers they get?
4) Am I the only person in the world who is un-aware of this feature?
Rgds and thanks in advance,
Paul.
Code:
Public Function CreateRandomCollNumber()
Dim UpperBound As Long, LowerBound As Long, CheckDupe As Integer
UpperBound = 9999999
LowerBound = 1000000
CreateRandomCollNumber = Int((UpperBound - LowerBound + 1) * Rnd + LowerBound)
Problem:
Running the above function will produce the following numbers:-
7349927, 5800816, 6215667, 3606062.
If the table (which stores the data) is cleared and the database is compacted, the function repeats the numbers in the same sequence:-
7349927, 5800816, 6215667, 3606062.
I've also created a new database and just running the function (no tables). The same numbers appear. When I compact the DB they repeat again.
Questions:
1) Are these numbers stored in my profile only?
2) Are these numbers preset within Access?
3) As a test, can someone else run the above and see what numbers they get?
4) Am I the only person in the world who is un-aware of this feature?
Rgds and thanks in advance,
Paul.