dukudee Posted February 10, 2002 Posted February 10, 2002 I want to calculate the value of my non resident fee field. If the student is a resident, the fee should be 0, if he is a non resident, it should be the non resident fee for the class. I do it like this: NonResidentFee = If(Student::Resident = "yes",0,Classes :: NonResidentFee) where classes is the name of a relationship between Student and Classes. Student is the current file. This does not return anything, but if I put the same line in a script using SetField and create a button that performs the script, it works fine when I click the button. Can someone help me here, what am I doing wrong with the calculated field? Thank you
LiveOak Posted February 10, 2002 Posted February 10, 2002 In Define Fields, try unchecking the box that says "do not calculate if all fields are empty". -bd
dukudee Posted February 10, 2002 Author Posted February 10, 2002 Thanks but that did not do it. Any other ideas?
Korky Posted February 11, 2002 Posted February 11, 2002 Check your calculation again.You show the field in the current file as"Student::Resident. The "::" suggests you have selected a related file,not the current file. It should just read If(Resident="yes" etc.
Recommended Posts
This topic is 8392 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