Jump to content
Server Maintenance This Week. ×

Calculated Field References


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

Recommended Posts

I have FieldOne with values A, B.

I have two other fields called BlockA and BlockB.

I am trying to write something that refers to either BlockA or BlockB depending on the value present in FieldOne. Something along the lines of: do something to the field called "Block" & "value-of-FieldOne".

For example, if the value of FieldOne is B, then I want to do something to the field called "Block" & "B", which is "BlockB".

Can anyone help me to write a calculation in FileMaker7 that refers to a field in this way?

Thanks for the help,

Michael

Link to comment
Share on other sites

You can't do anything to the BlockX field (unless it is an auto-entered calculation with 'Do not replace existing value for field' deselected) but you can base the calculation of other fields on it.

Use GetField("Block" & FieldOne) to retrieve the value of BlockX when X is the value of FieldOne.

Link to comment
Share on other sites

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