Otherwise, another option that is more along the lines of what OP asked for, you can create a single generic function that you pass the value your trying to count and it will loop through a predefined list of comboboxs and count the matches. You can use this vba function in your text box control source. Something like.
Code:
Private Function ComboCount(match_value As String) As Long
On Error GoTo ErrHandler
Dim combo_names As String
Dim combo_name As Variant
Dim combo_arr() As String
Dim running_sum As Long
running_sum = 0
'-----------------------------------------------------------------------
'---------------------------- ENTER YOUR FORM'S COMBO BOX NAMES HERE !!!
'-----------------------------------------------------------------------
combo_names = "Combo0,Combo2,Combo4,Combo6,Combo8,Combo10,Combo12,Combo14,Combo16,Combo18"
'-----------------------------------------------------------------------
combo_arr = Split(combo_names, ",")
For Each combo_name In combo_arr
If Me.Controls(combo_name) = match_value Then
running_sum = running_sum + 1
End If
Next combo_name
ExitHandler:
ComboSum = running_sum
Exit Function
ErrHandler:
MsgBox Err.Description, vbInformation, "Error #" & Err.Number
Resume ExitHandler
End Function
Then in a summary text box you would set the control source to something like =ComboCount("bread"). This is a lot more error prone, more work, less manageable, less flexible than the I approach I previously posted.