Access Checkbox and Sum (right post)

M

Miltos

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
 
J

John Spencer

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
'====================================================
 
M

Miltos

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

John Spencer said:
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
'====================================================

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top