Tom

 

Coincidentally, I am working on a similar report regarding course activity & including identification of delegates that were a NoShow.

The NoShow field is a logical field displayed in the Detail band of the report.

In the footer, I want to count the number of NoShows.

 

I think this is what Jim is after as well.

Using:   =count([NoShow]), merely counts all the noshow fields, 1 for each record irrespective of true or false.

I have tried various other options, but currently have failed miserably.

 

Jim & I would appreciate some guidance here.

 

Regards

 

Norman Pearce

IM&T Learning Manager

The Training Centre

Ealing Hospital NHS Trust

Developing the foundations for your success

 

 

 

-----Original Message-----
From: Tom Oakes [mailto:[EMAIL PROTECTED]
Sent: 13 January 2006 22:31
To: [email protected]
Subject: RE: [AccessDevelopers] counting check box values in a report

 

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.




YAHOO! GROUPS LINKS




Reply via email to