Jump to content

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

Recommended Posts

Posted

Hi,

I want to have a field in database A (placement) that says Yes or No depending on some criterias.

If a record with the status="yes" in database B matching the clientname from the database A is found, the placement field should be Yes.

Anyone?

Thanks,

Martin

Posted

Create a relationship from database A to database B with client number as the match field. I'll call this relationship AB. (I wouldn't use client name. It is not a unique enough key.)

Does database B contain more than one of each possible client?

If not, then create a text calculation field with the following result:

Case( AB::status = "yes", "yes", "no" )

If database B may contain more than one record for each client, then sort the AB relationship (in its definition) by status [descending]. This will force related records for the client to 'float' to the top in reverse order ('n' comes before 'y' in the alphabet, so the sort must be reversed) and the text calculation will function correctly.

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