Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Sorry, I couldn't think of a more accurate topic title for this.

 

And I'm annoyed, because I'm sure this is something simple, but I just can't come up with it at the moment.

 

I'm looking for calculation to determine if a value in a particular field is equal to an existing value from a second field in a related table.

 

For example, in one table there is a set of invoice records.  In another table, a user is inputting invoice numbers.  If the user enters an invoice number that already exists in the other table, I'll do some conditional formatting to change the color of the field.

 

I thought I had done this before with either the ValueListItems function, the List function or PatternCount, but I can't seem to make anything work at the moment.

 

Any pointers/reminders would be great.  Thanks!

Posted

If the relationship is based on invoice numbers, then Count(RelatedTable::id) ≠ 0 ought to do it.  If not, make a new TO with that relationship.

Posted

You might be looking for something like this, but i'm not clear how your two tables are related, so I'm not sure.

not IsEmpty ( FilterValues (
    List ( Related::Field ) ;
    Local::Field
) )

This calculation will be true if your Local::Field exactly matches a Related::Field, where there can be multiple matching records in the Related table.

Posted

I believe you mean FilterValues(), not Filter().

Thanks, yes I did mean FilterValues. I also missed an opening bracket. I edited my post, so the calculation should be correct now.

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