Jump to content

Field as a "summary" of related fields


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

Recommended Posts

Hi,

I've run into what seems like a fairly straight-forwards problem but I can't figure it out.

I have my principal record "table1" with my related "table2". "table2" takes "table1"'s primary key.

I have a field in table 2 called status that can be set to "Open" or "Closed". I also have a status in table1 that can be "Open" , "Closed" or "Started". The way I want it to work is:

-If there are no related records in table 2: status = "Started"

-If there are "closed" and "open" related records in table2: status = "Open"

-If there are only "closed" related records in table 2: status = "closed"

I've been trying to figure out a calculation but I don't know where to start.

Link to comment
Share on other sites

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