I have two groups of associates, unit a which has 7 associates and unit b which has 8 associates, who work accounts daily based on unit type. Each day I have to randomly assign 700+ accounts evenly to the associates based on unit. Using Excel I add a random column to randomly number the accounts, then sort by unit type and random number, paste the 7 or 8 names and drag down to assign to associates.
I need to be able to do this in Access as the process has various steps before this and takes about 30 minutes each day to complete.
Also, I need the associate list to be dynamic; I setup a yes/no box in the associate table to uncheck if associates are absent on a given day. I assume I need to do some type of loop statement in VBA code to loop through active associates and assign to accounts but my VBA skills are very week.
I have an Associate table, as below, which I had to assign the accounts evenly based on Unit. Any help would be grateful as I am completely lost on this.
Unit Associate Available A John Smith Yes A James Doe No B Sandy Jones Yes B Camille Madison Yes B Doris Adams Yes
I created a random assignment query but the number of employees is static and we occasionally need to add and remove associates and account for absences.
Any help would be great!