I have a need to randomize multiple records against eachother (see below).
ONE record should consist of:
Random day from 1-32 (each day can only occur 6 times, if possible).
Random organization from organization1, organization2...organization200.
Random action from action1, action2... action 10
Random detail from detail1, detail2... detail 200.
So basically, I have the need for A LOT of randomization in a single query.
Currenlty, i have an append query that has these 4 fields WITH 4 expressions (Rnd([OrganizationID], Rnd([TimeID])...)
So these 4 fields and 4 rnd expressions take 20 minutes to query.. a single rnd takes less than a second to query. 2 rnd's take about 3 seconds. 3 rnd's takes about 5 minutes... It's rediculous! =(
So other than this issue, I have even a bigger one. Sometimes, these "random" measures will task an organization twice in the same time... So if there were a way to limit an organization to a single task per day (like, IF duplicate day (14th) for organization (organization9), re-randomize)...
I know I'm looking at this the wrong way. Can somebody please help me? Preferrably, I would like 4 randomizations to occur on a single click and append to a table... Since these randomizations would have to NOT affect the source, it will all have to be done through append... I've been working on this for about a week and my boss is getting really upset that I can't figure this one out.. It's really kicking my A. Any help will be greatly appreciated (esp. since Google isn't yeilding any useful returns). PS: working in Access 2007.
ONE record should consist of:
Random day from 1-32 (each day can only occur 6 times, if possible).
Random organization from organization1, organization2...organization200.
Random action from action1, action2... action 10
Random detail from detail1, detail2... detail 200.
So basically, I have the need for A LOT of randomization in a single query.
Currenlty, i have an append query that has these 4 fields WITH 4 expressions (Rnd([OrganizationID], Rnd([TimeID])...)
So these 4 fields and 4 rnd expressions take 20 minutes to query.. a single rnd takes less than a second to query. 2 rnd's take about 3 seconds. 3 rnd's takes about 5 minutes... It's rediculous! =(
So other than this issue, I have even a bigger one. Sometimes, these "random" measures will task an organization twice in the same time... So if there were a way to limit an organization to a single task per day (like, IF duplicate day (14th) for organization (organization9), re-randomize)...
I know I'm looking at this the wrong way. Can somebody please help me? Preferrably, I would like 4 randomizations to occur on a single click and append to a table... Since these randomizations would have to NOT affect the source, it will all have to be done through append... I've been working on this for about a week and my boss is getting really upset that I can't figure this one out.. It's really kicking my A. Any help will be greatly appreciated (esp. since Google isn't yeilding any useful returns). PS: working in Access 2007.