A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count Only Yes Records on Report



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2004, 08:58 PM
Ann
external usenet poster
 
Posts: n/a
Default Count Only Yes Records on Report

I have a report with a field called [On Track]. The
control field is a combo box that captures Yes/No. I
would like to capture a Sub total Count of only the YES
records. I've tried the following =Count([On Track]), =Sum
(ABS([On Track]), =ABS(Count([On Track])but it continues
to count all the records in the field.
Can someone tell me what I'm doing wrong. Help!!!!
  #2  
Old May 21st, 2004, 09:51 PM
Fons Ponsioen
external usenet poster
 
Posts: n/a
Default Count Only Yes Records on Report

=Sum(Abs([OnTrack]))
or
=Abs(Sum([OnTrack]))
will work, I suspect you placed the Textbox with the above
line in other than the report or group footer.
Hope this helps.
Fons
-----Original Message-----
I have a report with a field called [On Track]. The
control field is a combo box that captures Yes/No. I
would like to capture a Sub total Count of only the YES
records. I've tried the following =Count([On Track]), =Sum
(ABS([On Track]), =ABS(Count([On Track])but it continues
to count all the records in the field.
Can someone tell me what I'm doing wrong. Help!!!!
.

  #3  
Old May 24th, 2004, 02:59 PM
Ann
external usenet poster
 
Posts: n/a
Default Count Only Yes Records on Report

Fons,
I'm not sure what your suggestion was.
Are you saying I should not put the textbox with the
=Sum(Abs([OnTrack])) in the report or group footer?


Thanks.

-----Original Message-----
=Sum(Abs([OnTrack]))
or
=Abs(Sum([OnTrack]))
will work, I suspect you placed the Textbox with the

above
line in other than the report or group footer.
Hope this helps.
Fons
-----Original Message-----
I have a report with a field called [On Track]. The
control field is a combo box that captures Yes/No. I
would like to capture a Sub total Count of only the YES
records. I've tried the following =Count([On Track]),

=Sum
(ABS([On Track]), =ABS(Count([On Track])but it

continues
to count all the records in the field.
Can someone tell me what I'm doing wrong. Help!!!!
.

.

  #4  
Old May 24th, 2004, 03:17 PM
Ann
external usenet poster
 
Posts: n/a
Default Count Only Yes Records on Report

I have the text box with =Sum(abs([ on track]) in the
group summary field and report footer. It's giving me an
error message expression is too complicated to be
evaluated. Help... thanks.


-----Original Message-----
Fons,
I'm not sure what your suggestion was.
Are you saying I should not put the textbox with the
=Sum(Abs([OnTrack])) in the report or group footer?


Thanks.

-----Original Message-----
=Sum(Abs([OnTrack]))
or
=Abs(Sum([OnTrack]))
will work, I suspect you placed the Textbox with the

above
line in other than the report or group footer.
Hope this helps.
Fons
-----Original Message-----
I have a report with a field called [On Track]. The
control field is a combo box that captures Yes/No. I
would like to capture a Sub total Count of only the

YES
records. I've tried the following =Count([On Track]),

=Sum
(ABS([On Track]), =ABS(Count([On Track])but it

continues
to count all the records in the field.
Can someone tell me what I'm doing wrong. Help!!!!
.

.

.

  #5  
Old May 24th, 2004, 04:10 PM
SA
external usenet poster
 
Posts: n/a
Default Count Only Yes Records on Report

Ann:

Normally what might cause this to error as being too complex is if the field
OnTrack might have null values rather than 0 or -1. Test that field in the
data for Is Null. If there are null values then use an update query to set
them to 0 and change the field in the table to default to 0
--
Steve Arbaugh
ACG Soft
http://ourworld.compuserve.com/homepages/attac-cg

"Ann" wrote in message
...
I have the text box with =Sum(abs([ on track]) in the
group summary field and report footer. It's giving me an
error message expression is too complicated to be
evaluated. Help... thanks.


-----Original Message-----
Fons,
I'm not sure what your suggestion was.
Are you saying I should not put the textbox with the
=Sum(Abs([OnTrack])) in the report or group footer?


Thanks.

-----Original Message-----
=Sum(Abs([OnTrack]))
or
=Abs(Sum([OnTrack]))
will work, I suspect you placed the Textbox with the

above
line in other than the report or group footer.
Hope this helps.
Fons
-----Original Message-----
I have a report with a field called [On Track]. The
control field is a combo box that captures Yes/No. I
would like to capture a Sub total Count of only the

YES
records. I've tried the following =Count([On Track]),

=Sum
(ABS([On Track]), =ABS(Count([On Track])but it

continues
to count all the records in the field.
Can someone tell me what I'm doing wrong. Help!!!!
.

.

.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.