S
Susan
Some time ago I posted a question on how to randomly
sort a list of staff names for a drawing we will be
holding monthly. It seemed like it worked OK during the
test, but now when I actually went to use it, it always
brings up the same name to start. Then whenever i re-run
the query, it generates the next names in the same order.
Here's what I have:
In the query I have the fields [AutoNumber],[FirstName],
[LastName], plus the two fields with the criteria on which
the names will be filtered, both of which are filtered
with a "Yes" in the Criteria row. The query pulls data
from two tables.
Using the instructions, I also entered into the Field
row: Shuffle: Rnd([AutoNumber]) and sorted on that field.
I also typed "randomize" in the debug window prior to
running the query.
As I said, although the names appear to be random, if I
close out the database, then go back into it, put
randomize in the debug window and run the query, the same
name pops up at the top, and each time I run the query the
same rotation of names occurs. Am I missing something
from the initial instructions?
Thanks! Susan
sort a list of staff names for a drawing we will be
holding monthly. It seemed like it worked OK during the
test, but now when I actually went to use it, it always
brings up the same name to start. Then whenever i re-run
the query, it generates the next names in the same order.
Here's what I have:
In the query I have the fields [AutoNumber],[FirstName],
[LastName], plus the two fields with the criteria on which
the names will be filtered, both of which are filtered
with a "Yes" in the Criteria row. The query pulls data
from two tables.
Using the instructions, I also entered into the Field
row: Shuffle: Rnd([AutoNumber]) and sorted on that field.
I also typed "randomize" in the debug window prior to
running the query.
As I said, although the names appear to be random, if I
close out the database, then go back into it, put
randomize in the debug window and run the query, the same
name pops up at the top, and each time I run the query the
same rotation of names occurs. Am I missing something
from the initial instructions?
Thanks! Susan