Jump to content

This topic is 8392 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.