CraigB Posted May 29, 2008 Posted May 29, 2008 I have a Price field that I would like to auto-calcualte based on which answer is chosen from a dropdown list. I have a Member field, which is either a Yes or No, chosen from a dropdown list. The Member cost is $35, the Non-Member cost is $40. I would like the Price field to auto calculate the price based on either the Yes (Member) or No (Non-Member). I know I start with price= in the formula, but which would be the correct stament to make the choice? Thanks in advance for your help.
Lee Smith Posted May 29, 2008 Posted May 29, 2008 (edited) Try: Your Calculation Field, I'll use Price, Price (calculation, Result Number) = Case (Member = "Yes"; 35; 40) HTH Lee Edited May 29, 2008 by Guest
comment Posted May 29, 2008 Posted May 29, 2008 Prices change from time to time, and it's not a good idea to hard-code them into calculations. Use a lookup instead. BTW, price must be of type Number, otherwise you won't be able to summarize it.
Lee Smith Posted May 29, 2008 Posted May 29, 2008 Oops. I changed the results to number. Good point about hard coding the amount. Lee
CraigB Posted May 29, 2008 Author Posted May 29, 2008 (edited) Thanks, that did the trick. It is a number field. These numbers will not be changing. They are set prices for a trip reservation program that I am creating. Edited May 29, 2008 by Guest
Recommended Posts
This topic is 6082 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