rainbowruthm
New member
- Local time
- Today, 07:43
- Joined
- Dec 23, 2008
- Messages
- 7
Hi,
I am trying to create a query where each entry in my database is assigned a random number between 1 and 4. After this I will use the query to select certain entries with a specific number that fit other criteria that I will enter later.
I have tried Group: Int((4-1+1)*Rnd()+1) however this returns the same random number for each entry.
Is there a way to have a different random number for each row? And if so, would the same random number be assigned to each row each time I turn on the database, as I need to be able to refer back to which entry has which number and is therefore assigned to which group.
Thanks
I am trying to create a query where each entry in my database is assigned a random number between 1 and 4. After this I will use the query to select certain entries with a specific number that fit other criteria that I will enter later.
I have tried Group: Int((4-1+1)*Rnd()+1) however this returns the same random number for each entry.
Is there a way to have a different random number for each row? And if so, would the same random number be assigned to each row each time I turn on the database, as I need to be able to refer back to which entry has which number and is therefore assigned to which group.
Thanks