Link to home
Start Free TrialLog in
Avatar of SteveL13
SteveL13Flag for United States of America

asked on

Convert Excel formula that includes IfError to Access

I have an Excel formula that looks like:

=IFERROR((MAX((((G11-$M$5)*F11)*$M$6),0)),"")

The corresponding Access form fields are:

G11 = txtMST
M5 = txtMoistureMax
F11 = txtCleanCWT
M6 = txtDisSchd1

How do I convert this to Access?
Avatar of Ferruccio Accalai
Ferruccio Accalai
Flag of Italy image

Something like
IIF ((((txtMST-txtMoistureMx)*txtCleanCWT)*txtDisSchd1) <= 0,0,"")
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of SteveL13

ASKER

This was perfect...

= IIf((Nz(txtMST, 0) - Nz(txtMoistureMax, 0)) * Nz(txtCleanCWT, 0) * Nz(txtDisSchd1, 0) >= 0, (Nz(txtMST, 0) - Nz(txtMoistureMax, 0)) * Nz(txtCleanCWT, 0) * Nz(txtDisSchd1, 0), 0)
And I'm going to post another formula issue titled, "Final Excel to Access calculation issue"