Ballot results capturing

dugaucher

Registered User.
Local time
Today, 14:33
Joined
Mar 12, 2015
Messages
12
Hi,

I am trying to capture ballot results for our committee management database. the tables are already capturing voting info for members and committees. What I am looking at is the hability the add a form that will capture the results for votes.
We need to ballot at least 100 times a year so each form needs to keep it own data and create a new one each time there is a vote.

I think:confused:

Please share your knowledge.

Many tks in advance
 
what have you tried so far?

seems like a query or maybe a sum query would suffice?
 
I have tried a query but I am not sure if I can write the vote result on a query?
 
Last edited:
without knowing what you've tried i'm sort of throwing darts.

I'm assuming you have people vote - and the votes are into a table. You then want to see the results of the voting? Queries and Reports both have wizards that can pull that together for you.

Here's an example of using Report Wizard.
http://www.access-programmers.co.uk/forums/showthread.php?t=75452
 
Hi MDNUTS,
Indeed I capture already vote info on a table. Vote info= voting status of each members ( Voter, info, alternate, etc.).
I don't currently capture the vote results. That's is what I'm looking for. Does it have to be on a table, query, report? How? Sorry to confuse you on the first message��
 
do you need to store how each voter voted, or just the totals?
 
Right,

You could have a couple different scenarios.

Overall you want a vote/ballot/voting set of tables where the vote table is the main one, ballots uses the vote id to store all possible voting choices and voting tables which uses the ballot id to store the record of what was cast along with the vote ID of the first table as an identifier.

Example:
Table 1 - voteID as Primary Key - autonumber
Table 1 - fldVoteTitle as Text
Table 1 - fldVoteDetail as Text

And Vote possiblities.
Table 2 - ballotID as Primary Key - autonumber
Table 2 - fldVoteID as Number
Table 2 - fldItem as Text

And finally Vote Casting
Table 3 - castID as Primary Key - autonumber
Table 3 - fldVoteID as Number
Table 3 - fldVoteCast as Text (or number)

For relationships you match up the obvious
Table 1 - voteID relates to Table 2 fldVoteID
Table 1 - voteID relates to Table 3 fldVoteID

What this lets you now do is count either with VBA, Reports or Queries inside Table 2 for the specified Vote.

Example Records

Table 1
voteID - 1, fldVoteTitle - "vote for budget", fldVoteDetail - "We need you to vote now on budget 2015"

Table 2
ballotID - 1, fldItem - "Yes"
ballotID - 2, fldItem - "No"

Table 3
castID - 1, fldVoteID - 1, fldVoteCast - 1 (voted yes on budget vote)
castID - 2, fldVoteID - 1, fldVoteCast - 1 (voted yes on budget vote)
castID - 3, fldVoteID - 1, fldVoteCast - 2 (voted no on budget vote)
castID - 4, fldVoteID - 1, fldVoteCast - 2 (voted no on budget vote)
castID - 5, fldVoteID - 1, fldVoteCast - 3 (voted no on budget vote)

The No's barely carry the day with 3 against 2 for.

Attached an example table.

--update--

I had initially wondered the same thing that gemma did - and you could solve it by adding a 4th table for person - and add another column to the votes cast table with the primary id of the person casting the vote - and count out that way.
 

Attachments

Right,

You could have a couple different scenarios.

Overall you want a vote/ballot/voting set of tables where the vote table is the main one, ballots uses the vote id to store all possible voting choices and voting tables which uses the ballot id to store the record of what was cast along with the vote ID of the first table as an identifier.

Example:
Table 1 - voteID as Primary Key - autonumber
Table 1 - fldVoteTitle as Text
Table 1 - fldVoteDetail as Text

And Vote possiblities.
Table 2 - ballotID as Primary Key - autonumber
Table 2 - fldVoteID as Number
Table 2 - fldItem as Text

And finally Vote Casting
Table 3 - castID as Primary Key - autonumber
Table 3 - fldVoteID as Number
Table 3 - fldVoteCast as Text (or number)

For relationships you match up the obvious
Table 1 - voteID relates to Table 2 fldVoteID
Table 1 - voteID relates to Table 3 fldVoteID

What this lets you now do is count either with VBA, Reports or Queries inside Table 2 for the specified Vote.

Example Records

Table 1
voteID - 1, fldVoteTitle - "vote for budget", fldVoteDetail - "We need you to vote now on budget 2015"

Table 2
ballotID - 1, fldItem - "Yes"
ballotID - 2, fldItem - "No"

Table 3
castID - 1, fldVoteID - 1, fldVoteCast - 1 (voted yes on budget vote)
castID - 2, fldVoteID - 1, fldVoteCast - 1 (voted yes on budget vote)
castID - 3, fldVoteID - 1, fldVoteCast - 2 (voted no on budget vote)
castID - 4, fldVoteID - 1, fldVoteCast - 2 (voted no on budget vote)
castID - 5, fldVoteID - 1, fldVoteCast - 3 (voted no on budget vote)

The No's barely carry the day with 3 against 2 for.

Attached an example table.

--update--

I had initially wondered the same thing that gemma did - and you could solve it by adding a 4th table for person - and add another column to the votes cast table with the primary id of the person casting the vote - and count out that way.

mdnuts,
Thanks for this. I helps me better understand. where would you incorporate the MemberNames that voted?
 
i'll update the database sample, one min
 
ok, this is about as far as I can go with this.

See attached database example (it's zipped). Oh yeah - at this point, you have to enable macro's to let things work right.


Table_1 - Vote overall
Table_2 - Voting possibilities
Table_3 - Ballots Cast
Table_4 - Member Listing

frmVoteEntry - enter a new vote w/vote items
--frmVoteEntryItems - subform of above - you wouldn't open it directly.
frmVoteCast - Cast your vote by clicking on the vote and select who the voter is.
--frmCastFooter - subform of above - you wouldn't open it directly.
frmVoteList - a list of all the vote options, click on the vote ID to view report "rptVoteResultsSpecific"

rptVoteByMember - lists all members and what they voted on
rptVoteResultsAll - report of all votes cast for all votes
rptVoteResultsSpecific - see above.

you can see what queries go to what by viewing design mode of various reports/forms and the queries themselves to see what they do.
 

Attachments

Users who are viewing this thread

Back
Top Bottom