I have a bridge table used to manage Many to Many relationships (DB_Lookups). The Bridge Table has 3 LookUp columns, one to People, one to Groups and One to Orders. This allows me to manage the relationships between People & Groups, Groups & Orders and Orders & People.
If I create a new Order and link it to People, the Groups column is Blank, if I Link People to Groups, the Order column is blank.
I've go a galley on an Order Page where I want to show the People linked to that order and use the LookUp table to do this and all works fine until I also have a Group associated with the Order is that record is also displayed as an entry is included in the LU_Order Column alongside the LU_Group (to make the relationship).
Filter(
DB_Lookups,
LU_Order.ORD_ID = var_OrderRecord.ORD_ID
)
To get around this, I tried the following...
Filter(
DB_Lookups,
LU_Order.ORD_ID = var_OrderRecord.Ord_ID And !IsBlank(LU_Groups)
)
But get a delegation error on the "And !IsBlank(LU_Groups)" part of the filter.
How do I get around this to only show records where the Order_ID = the current record (held in the var_OrderRecord array) and there is no entry in the LU_Group column?
Do I need a separate LookUp table to manage each many-to-many relationship?
TIA