Hi there,
I wasn't sure whether to post in reports or queries, as I do want to end up with a report. I reckon it will all start with a query, however, so here goes..
I have a situation where I will be keeping track of people that are registered for a convention. Now, each person will be associated with a "region", and each region has what I'll call a pre-determined "voting strength". So, depending on how many people show up for a given region, these people will have a calculated number of votes.
This is probably best illustrated with examples:
Let's say Region A was a voting strength of 22 votes. If only one Region A person registers for the convention, he/she will cast all 22 votes. If two people show up, each person would get 11 votes.
Now, here is where the complication sets in. If 3 people were to register, they would get 7.33333 votes each, wich, of course, doesn't seem feasible.
What I would like to do in a situation like this (this is what I would like the report to show eventually), is have two people with 7 votes, and the third with 8. It doesn't even matter which of the three people gets the extra vote.
So, the query would need to get a count of persons registered, grouped by region, and then, IF POSSIBLE, show the votes each person would be entitled to, and in the case of un-even numbers - assign an extra vote to someone.
I hope this makes some sort of sense, and if it is possible, any suggestions would be awesome. Even if it looks like it CAN'T be done, please let me know.
Thanks so much!
Cheers,
Ace
I wasn't sure whether to post in reports or queries, as I do want to end up with a report. I reckon it will all start with a query, however, so here goes..
I have a situation where I will be keeping track of people that are registered for a convention. Now, each person will be associated with a "region", and each region has what I'll call a pre-determined "voting strength". So, depending on how many people show up for a given region, these people will have a calculated number of votes.
This is probably best illustrated with examples:
Let's say Region A was a voting strength of 22 votes. If only one Region A person registers for the convention, he/she will cast all 22 votes. If two people show up, each person would get 11 votes.
Now, here is where the complication sets in. If 3 people were to register, they would get 7.33333 votes each, wich, of course, doesn't seem feasible.
What I would like to do in a situation like this (this is what I would like the report to show eventually), is have two people with 7 votes, and the third with 8. It doesn't even matter which of the three people gets the extra vote.
So, the query would need to get a count of persons registered, grouped by region, and then, IF POSSIBLE, show the votes each person would be entitled to, and in the case of un-even numbers - assign an extra vote to someone.
I hope this makes some sort of sense, and if it is possible, any suggestions would be awesome. Even if it looks like it CAN'T be done, please let me know.
Thanks so much!
Cheers,
Ace