Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6249 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a calculation field which calculates

fieldA - fieldB = X

but the result calculates even if field A is empty or if fieldB is empty... how can I stop this? I can do it if fieldA is empty but how if fieldB happens to be empty also?...

TIA

Ben

Posted

Ben,

At the bottom of the calculation dialog box is a check box for "do not evaluate if all fields are empty"... or there is in FMv9. Can't recall if this is in v6.

However, if it's not there or it doesn't work, you can use a case statement to stop the calc.

case( (test field A) AND (test field B) ; result-if-both-true ; result-if-not-both-true)

Regards,

Don

Posted

I am actually on 8 advanced... however.... yes that box is checked as default but the calculation was still working if one or the other field was empty... maybe because I was using an "if" statements?

however.... thanks for your calc... that works and very handy for me..

This topic is 6249 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.