Jump to content

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

Recommended Posts

  • Newbies
Posted

Hello:

I am trying to get something accomplished in a field calculation that I am not sure is possible. Basically I have some logic that tests other fields and if they add to more than 352, do one thing, less than 352, do another, and if the current field doing the calculating goes below '0' pop up a dialog box that says you cant do that. Not sure if this makes sense, but here is a butchered snipit of code that hopefully someone can follow my logic on and possibly make suggestions as to making it work:

Also you will notice that I simply said "[This field]" in the code toward the end because I don't know how to reference the current field that is doing the calculation.

Any help is much appreciated!

Case(

Annual Leave Previous Balances - Annual Leave Total Hours - Annual Leave Donated Hours + Annual Leave Hours Earned <  352, Annual Leave Previous Balances - Annual Leave Total Hours - Annual Leave Donated Hours + Annual Leave Hours Earned; 



Annual Leave Previous Balances - Annual Leave Total Hours - Annual Leave Donated Hours + Annual Leave Hours Earned >  352; 352;



[This field] < 0; Show Custom Dialog [Error; You can not use hours you have not earned!; ]; "" )

  • Newbies
Posted

Unfortunately, its what I was provided with at work...

I'm sure I could find an updated version if I asked but for now is this possible?

Thanks

Posted

I believe so, but there are two separate issues here. Calculations calculate, they do not "do". To show a custom dialog, try validating one or more of the input fields using a similar calculation.

  • Newbies
Posted

I am fairly illiterate when it comes to Filemaker as I am more used to Excel. Would you happen to have an example with correct syntax I could see?

Thanks

Posted

I completely agree with Comment, however I'd recommend FMP 8.5 as the minimum.

Posted

I couldn't recommend FMP 7 with a clear conscience even when it was NEW. LOL

This topic is 5198 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.