simple expression stumping me

D

Dale

I need to assign a value to a box on a form where X=A+B, but not to exceed Y.
To me it should be simple, but I’m being brain dead on this one. I don’t
see how to do the Max of Y.
 
S

strive4peace

Hi Dale,

can you use a specific example? ... don't have enough information to
help you ...


Warm Regards,
Crystal
*
:) have an awesome day :)
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
 
F

fredg

I need to assign a value to a box on a form where X=A+B, but not to exceed Y.
To me it should be simple, but I¢m being brain dead on this one. I don¢t
see how to do the Max of Y.

Your skimpy with the details, so here is a generic expression.

=IIf(A + B)>Y,Y,(A + B))

You can fill in the proper fields.
 
D

Dale

strive4peace said:
Hi Dale,

can you use a specific example? ... don't have enough information to
help you ...


Warm Regards,
Crystal
*
:) have an awesome day :)
*
MVP Access
Remote Programming and Training
strive4peace2006 at yahoo.com
*
I said form, I meant report. I have five columns “count of Aâ€, “count of
Bâ€, “totalâ€, “Max allowed†, and "precent of allowed". I need the total of
A & B to be truncated at the value of Max allowed.

Thanks
 
D

Dale

fredg said:
Your skimpy with the details, so here is a generic expression.

=IIf(A + B)>Y,Y,(A + B))

You can fill in the proper fields.

That did it.

Thanks
 

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