How to add an AND clause to a function statement

D

Dean Slindee

How to change the following two statements to limit to age range 50-64:
=IIf([Age]>=50,1,0)

=IIf([Age]>=50,Sum([Count5064]),0)



Thanks,

Dean S
 
K

kingston via AccessMonster.com

Do you mean this:

=IIf(([Age]>=50) AND ([Age]<=64),1,0)

Where are you applying the second formula? You might want to use this
instead:
DSum("[Count5064]","Table","([Age]>=50) AND ([Age]<=64)")

Dean said:
How to change the following two statements to limit to age range 50-64:
=IIf([Age]>=50,1,0)

=IIf([Age]>=50,Sum([Count5064]),0)

Thanks,

Dean S
 
F

fredg

How to change the following two statements to limit to age range 50-64:
=IIf([Age]>=50,1,0)

=IIf([Age]>=50,Sum([Count5064]),0)

Thanks,

Dean S

What does this mean? >Sum([Count5064] <
Are you tring to count the instances where the Age is between those
years?

=Sum(IIf([Age] >=50 and [Age] <=64,1,0))
 

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