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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count Yes/No for three fields in one column



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 05:34 PM posted to microsoft.public.access.queries
Marilyn Myers
external usenet poster
 
Posts: 20
Default Count Yes/No for three fields in one column

I work with Access 2007. I have a table with 4 columns: Date Mailed, 2nd, C
w/o Inv, and C w/Inv. I can get the monthly totals by grouping on Date
Mailed and each individual column. Is there a way to combine the totals for
2nd, C w/o Inv and C w/Inv that are Yes/No boxes into One column? I use the
following for each individual column:
YesCount1st: Abs(Sum([1st]))

How do I write the expression to include all three fields in one column?
Thanks in advance for any help someone can give.
Marilyn
  #2  
Old May 28th, 2010, 06:03 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Count Yes/No for three fields in one column

YesCountAll: Abs(Sum([2nd] + [C w/o Inv] + [C w/Inv]))

--
Build a little, test a little.


"Marilyn Myers" wrote:

I work with Access 2007. I have a table with 4 columns: Date Mailed, 2nd, C
w/o Inv, and C w/Inv. I can get the monthly totals by grouping on Date
Mailed and each individual column. Is there a way to combine the totals for
2nd, C w/o Inv and C w/Inv that are Yes/No boxes into One column? I use the
following for each individual column:
YesCount1st: Abs(Sum([1st]))

How do I write the expression to include all three fields in one column?
Thanks in advance for any help someone can give.
Marilyn

  #3  
Old May 28th, 2010, 06:46 PM posted to microsoft.public.access.queries
Daryl S[_2_]
external usenet poster
 
Posts: 881
Default Count Yes/No for three fields in one column

Marilyn -

I think you want this:

= Sum(Abs([2nd]) + Abs([C w/o Inv]) + Abs([C w/Inv]))

--
Daryl S


"KARL DEWEY" wrote:

YesCountAll: Abs(Sum([2nd] + [C w/o Inv] + [C w/Inv]))

--
Build a little, test a little.


"Marilyn Myers" wrote:

I work with Access 2007. I have a table with 4 columns: Date Mailed, 2nd, C
w/o Inv, and C w/Inv. I can get the monthly totals by grouping on Date
Mailed and each individual column. Is there a way to combine the totals for
2nd, C w/o Inv and C w/Inv that are Yes/No boxes into One column? I use the
following for each individual column:
YesCount1st: Abs(Sum([1st]))

How do I write the expression to include all three fields in one column?
Thanks in advance for any help someone can give.
Marilyn

 




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 03:16 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.