Newbies Reginald Posted July 8, 2012 Newbies Posted July 8, 2012 Hi everyone! I'm relatively new to filemaker but I think that what I'm trying to do is relatively simple. I have a layout which I use to track cash. On one of the fields (Income_Expense) I have a drop-down list and either select "Income" if I want to record money that I received or "Expense" to record money that I have paid. What I want to do is: When "Income_Expense" field is set to "Expense", then "Expense_Amount" field (which is the number field where I write down the amounts) is negative. How do I write this statement?? Thanks!
comment Posted July 8, 2012 Posted July 8, 2012 The best way would be to enter expenses as negative amounts. Otherwise you will have an awkward user interface that changes the actual user input. For example, user edits an existing expense sum (which is already negative) - should it now flip automatically to positive? But, if you prefer, you could try making the field auto-enter a calculated value (replacing existing value) = Let ( [ amt = Abs ( Self ) ] ; Case ( Income_Expense = "Expense" ; -amt ; amt ) ) 1
Newbies Reginald Posted July 19, 2012 Author Newbies Posted July 19, 2012 Thank you so much!! It worked perfectly!! :smile:
Recommended Posts
This topic is 4565 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