Newbies goomba441 Posted December 2, 2010 Newbies Posted December 2, 2010 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 goomba441 Posted December 2, 2010 Author Newbies Posted December 2, 2010 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
comment Posted December 2, 2010 Posted December 2, 2010 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 goomba441 Posted December 2, 2010 Author Newbies Posted December 2, 2010 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
comment Posted December 2, 2010 Posted December 2, 2010 See if this helps. BTW, if you're just now starting with Filemaker, I'd suggest you start with at least version 7 - otherwise you will have a lot of unlearning to do later. Example.zip
Vaughan Posted December 2, 2010 Posted December 2, 2010 I completely agree with Comment, however I'd recommend FMP 8.5 as the minimum.
comment Posted December 3, 2010 Posted December 3, 2010 I agree with you, too - but now we're talking performance, not (only) paradigm.
Vaughan Posted December 3, 2010 Posted December 3, 2010 I couldn't recommend FMP 7 with a clear conscience even when it was NEW. LOL
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now