Hi!
I am new to VB and really don't know that much about it. I need create a module that will assign agent schedules based on seniority numbers and shift bid choices. For example, 13 shifts are available, agent with seniority number 1 gets their first choice of shift #2. Agent with seniority number 2 chooses shift#2 as their first choice and shift #6 as their second choice. They would be assigned shift #6, since shift#2 was already assigned to a higher seniority number. And so on through all available shifts. This is the table I have to work with, it shows the choice number (BidNo) for each seniority (SenNum) and the shift (SchedNo) for each.
SenNum BidNo SchedNo
1 1 1
2 1 3
2 2 5
3 3 8
3 2 11
3 1 13
4 1 1
4 2 4
4 4 11
4 3 13
5 5 1
5 1 2
5 2 3
5 3 6
5 4 8
6 6 3
6 5 5
6 4 7
6 3 9
6 2 11
6 1 13
I'm sure this is probably something pretty easy to do but I am clueless! Please help!! Thank y ou!!!
I am new to VB and really don't know that much about it. I need create a module that will assign agent schedules based on seniority numbers and shift bid choices. For example, 13 shifts are available, agent with seniority number 1 gets their first choice of shift #2. Agent with seniority number 2 chooses shift#2 as their first choice and shift #6 as their second choice. They would be assigned shift #6, since shift#2 was already assigned to a higher seniority number. And so on through all available shifts. This is the table I have to work with, it shows the choice number (BidNo) for each seniority (SenNum) and the shift (SchedNo) for each.
SenNum BidNo SchedNo
1 1 1
2 1 3
2 2 5
3 3 8
3 2 11
3 1 13
4 1 1
4 2 4
4 4 11
4 3 13
5 5 1
5 1 2
5 2 3
5 3 6
5 4 8
6 6 3
6 5 5
6 4 7
6 3 9
6 2 11
6 1 13
I'm sure this is probably something pretty easy to do but I am clueless! Please help!! Thank y ou!!!