Simplified, my tables are:
Receivement(ReceivementID(PK, autonr), CaseClosed(checkbox))
Item(ItemID(PK, autonr), ReceivementID(FK,nr), Finished(checkbox))
So each receivement has multiple items. When the "Finished" field is checked for all the items a receivement has, the "CaseClosed" checkbox should be set to true in the receivement automatically.
Is there a way to implement this calculation on the level of the tables (in table design)? Or should it be done with a query?
Fields from the Receivement table are shown on a form that has a query as recordsource. So far I figured how you can add calculated fields to a query, but I dont know how to build the expression so that it uses the AND operator on the values of the "Finished" checkbox of all the items belonging to a receivement. I've gotten as far as:
CaseClosed: [Item].[Finished]
Can anyone help?
Receivement(ReceivementID(PK, autonr), CaseClosed(checkbox))
Item(ItemID(PK, autonr), ReceivementID(FK,nr), Finished(checkbox))
So each receivement has multiple items. When the "Finished" field is checked for all the items a receivement has, the "CaseClosed" checkbox should be set to true in the receivement automatically.
Is there a way to implement this calculation on the level of the tables (in table design)? Or should it be done with a query?
Fields from the Receivement table are shown on a form that has a query as recordsource. So far I figured how you can add calculated fields to a query, but I dont know how to build the expression so that it uses the AND operator on the values of the "Finished" checkbox of all the items belonging to a receivement. I've gotten as far as:
CaseClosed: [Item].[Finished]
Can anyone help?