Jump to content

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

Recommended Posts

Posted

Hi,

I need to know if its possible to create a caculation field that compares mutiple of number fields and copies the greatest number to itself.

Example, I have "5" on "field_1", "10" on "field_2" and "15" on "field_3" last calculation field identifies which field contains highest number and copies into itself.

Please give me some idea how this caculation field can be created.

Thanks in advance!

Posted

Stuff like this is much easier when done with related records.

Many situations that use multiple fields to hold similar values are usually better off relational, because it's usually a many-to-many relationship.

Looping through related records is dead easy to script. It may even be possible to get the result with a calculation or summary field which will give the result instantly without having to generate it each time something changes.

Posted

Another, rather kludgy way is to use the "Case" statement -- it's a way of stringing together multiple "If" statements. If you only have three or four fields to compare with each other, it's fairly quick. If you have, say, 10 fields, I'd say Vaughan is right: find a way to use relationships.

This topic is 8397 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.