Let's break down the two queries:
- first - query={'7'.EX.'260'}
- '7' - is the field id of a particular field in the child table. I'm betting it's named [Related Project].
- .EX. - is short for "EXactly".
- '260' - is a specified value.
This query pulled up all shipments for project 260, right? That's because the query is saying to look for all child table records where Field 7 is exactly 260.
- Second - query={'7'.EX.'"+ field["PARENTFIELDNAME"]+"'}
- '7' - is still the field id of a particular field in the child table. I'm betting it's named [Related Project].
- .EX. - is still short for "EXactly".
- '"+ field["PARENTFIELDNAME"]+"' - is the specified value. It's been changed from a static value (260) to a dynamic one (###) based on what the query finds when it looks for [ParentFieldName].
Try putting in the
key field name (probably Record ID#) of the parent record.
------------------------------
Brad Lemke
------------------------------