ISO,
You can use three Function statements to acomplish what you need to accomplish.
For this example, there are ten checkboxes (68, 70, 72, ... 84, 86), one Label (LblMessage) and an unbound textbox on the form named "Score" (visible or not).
The first function statement ("VoteCount"

keeps a running tally of how many times the person has voted. Be sure to to set the default value of your checkboxes at zero in the property box.
Code:
Private Function VoteCount()
Score() = -1 * (Check68 + Check70 + Check72 +
Check74 + Check76 + Check78 + Check80 + Check82 +
Check84 + Check86)
End Function
_______________________________________
The second Function statement ("CountCheck"

checks the tally and locks or unlocks the checkboxes as appropriate.
Code:
Private Function CountCheck()
If Score() > 4 Then
If Check68() = 0 Then
Check68.Locked = True
End If
'
'
'
'
If Check86() = 0 Then
Check86.Locked = True
End If
ElseIf Score() < 5 Then
Check68.Locked = False
Check70.Locked = False
Check72.Locked = False
Check74.Locked = False
Check76.Locked = False
Check78.Locked = False
Check80.Locked = False
Check82.Locked = False
Check84.Locked = False
Check86.Locked = False
End If
End Function
____
________________________________
The last Function statement changes the caption of the label to alert the user of how many votes they may cast.
Code:
Private Function LabelText()
If Score() < 5 Then
LblMessage.Caption = "You may vote for a maximum of five candidates."
ElseIf Score() > 4 Then
LblMessage.Caption = "Are these the five candidates you wish to vote for?"
End If
End Function
____________________________________
After you have these function statements written, simply put their names in the Click events of each checkbox as well as in the OnLoad and OnCurrent events of the form.
eg:
Code:
____________________________________
Private Sub Check68_Click()
VoteCount
CountCheck
LabelText
End Sub
________________________________________
You'll want to add a Command Button for the user to commit to the votes. If people must cast five votes (no less no more) you can enable the command button as part of the LabelText Function.
Remember that a checked checkbox has a value of -1. You'll want to multiply the values by -1 so you can run a positive integer back to your table of total votes.
BoxHead