Something like this, presumably in the Detail_Format section.  It won't work in Report_Open, as your controls aren't bound yet.
 
'***** code start *****'
 
Dim ctl As Control
Dim intCount As Integer
 
For Each ctl In Me.Controls
   If TypeOf ctl Is CheckBox Then
        If ctl <> 0 Then
            intCount = intCount + 1
        End If
    End If
Next
 
MsgBox "We've got " & intCount & " checkboxes checked."
 
'***** code end *****'
 

Tom Oakes
Personal PC Consultants, Inc.
[EMAIL PROTECTED]
503.230.0911 (O)
402.968.6946 (C)
734.264.0911 (F)




From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of luvmymelody
Sent: Friday, January 13, 2006 10:32 AM
To: [email protected]
Subject: [AccessDevelopers] counting check box values in a report

Hey everyone,

I have a report with check boxes as yes/no fields. I want to count the
check boxes that are checked on the report. Is there a way of doing
this. I have checked the Internet for solutions but none work. Most
solutions prompt me to enter a value in a prompt box. I would try to
avoid this.
Please help.

Jim






Please zip all files prior to uploading to Files section.




SPONSORED LINKS
Microsoft access developer Microsoft access help Microsoft access database
Microsoft access training Microsoft access training course Microsoft access programming


YAHOO! GROUPS LINKS




Reply via email to