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  

Access Checkbox and Sum (right post)



 
 
Thread Tools Display Modes
  #1  
Old July 17th, 2009, 01:24 AM posted to microsoft.public.access.queries
Miltos
external usenet poster
 
Posts: 2
Default Access Checkbox and Sum (right post)

Hello. I need some help for this access db.
doseis check
50 y/n
50 y/n
50 y/n
i tryed to sum doseis only if check=0 like this:
=IIf([check]=0;sum([doseis])) but it didn't work when i check it.
Can anyone help me with that? Thnx

  #2  
Old July 17th, 2009, 02:04 AM posted to microsoft.public.access.queries
John Spencer
external usenet poster
 
Posts: 2,364
Default Access Checkbox and Sum (right post)

Try the following:
= Sum(IIF([Check]=0,[DoseIs],Null))



'================================================= ===
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'================================================= ===


Miltos wrote:
Hello. I need some help for this access db.
doseis check
50 y/n
50 y/n
50 y/n
i tryed to sum doseis only if check=0 like this:
=IIf([check]=0;sum([doseis])) but it didn't work when i check it.
Can anyone help me with that? Thnx

  #3  
Old July 17th, 2009, 02:13 AM posted to microsoft.public.access.queries
Miltos
external usenet poster
 
Posts: 2
Default Access Checkbox and Sum (right post)

Thanks A lot John. That one worked. U r great and fast. Thanks again.

"John Spencer" wrote:

Try the following:
= Sum(IIF([Check]=0,[DoseIs],Null))



'================================================= ===
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'================================================= ===


Miltos wrote:
Hello. I need some help for this access db.
doseis check
50 y/n
50 y/n
50 y/n
i tryed to sum doseis only if check=0 like this:
=IIf([check]=0;sum([doseis])) but it didn't work when i check it.
Can anyone help me with that? Thnx


 




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 02:28 AM.


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