Jump to content
Sign in to follow this  

Calculated Field References

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,


Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

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