Newbies samanthaberg Posted July 13, 2001 Newbies Posted July 13, 2001 I created a field with a calculation...that combines the following information: Units*Price per unit=Total Cost. However, if the total cost is less than $51.00 I would like it to default to $51.00. That is the minimum charge. I have tryed several different formulas in the "specify calculation" area, but can't seem to figure it out. Any suggestions?
rhakka Posted July 13, 2001 Posted July 13, 2001 This should work Methinks: TotalCost = If((Units*Priceperunit )> 51, Units*Priceperunit, 51) This should check and see if the result will be greater than 51 dollars, if so it uses the evaluated amount, if not, it will use the default amount of 51. Though I would reccommend making a global field somewhere called "lowest price" or something and substituting that for the 51 in the calculation so the lowest price can be updated without getting into calculation definitions later on, especially if you are not the end user. Usually I'd make a "manager tools" page that would allow editing of values like that. IMO (in my opinion) hard coding specific values into a field definition is *usually* not as good as using a global field, especially if there is a chance the value will ever change.
Recommended Posts
This topic is 8641 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