digitaljunkie Posted September 26, 2006 Posted September 26, 2006 I have a ex VAT Field that I need to add VAT onto. How do I make my inc VAT field calculate 17.5% onto the price? Also can I make bot fields dynamic so if I enter info into one field it recalculates the other field? i.e if i enter the ex_vat price, the inc_vat field auto calculates or vice versa if enter the inc_vat price, the ex_vat will auto calculate?
John Mark Osborne Posted September 26, 2006 Posted September 26, 2006 Have you tried the auto-enter calculation option? You'll find it in Define Database by double-clicking on a field. Make sure to uncheck the option to "do not replace existing value (if any)" so the auto-enter occurs anytime referenced fields are modified.
Raybaudi Posted September 26, 2006 Posted September 26, 2006 Hi both fields must be number with option of AutoEnter/Replace a calculation. The calc for the field "ex_vat" is: Case( Get ( ActiveFieldName ) = "ex_vat" ; ex_vat ; Round ( inc_vat / 1.175 ; 2 ) ) The calc for the field "inc_vat" is: Case( Get ( ActiveFieldName ) = "inc_vat" ; inc_vat ; Round ( ex_vat * 1.175 ; 2 ) )
digitaljunkie Posted September 26, 2006 Author Posted September 26, 2006 Thats awesome thanks guys. P.S John just wanted to say I really like your training courses, have learn't loads has made me want look into Developer Certification.
Recommended Posts
This topic is 6694 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