I may be using that term improperly. I meant a set of records that
relate to one record.
Does that mean all the records currently displayed in the
subform? If so, is that the complete set of records in the
many table?
The one (parent) table contains one record to the many (child) table.
Come on, that's what one and many means. I am trying to
help, but you really should give some clues about what
identifies a child record as "belonging" to a parent record.
If we could use real table and field names here it would
eliminate all this fuzzy phraseology.
The child table contains them. The example I gave represents it:
ID | Use
123 | CS
224 |
344 |
459 | UN
578 | PT
666 |
Which of those fields is the foreign key field?
Does the subform control specify anything in the Link
Master/Chiid Fields properties?
For example CS, UN, PT can be assigned to no more than one ID. Many
ID's can have a Null [Use]. Otherwise I would simply make [Use] and
[ID] primary keys.
Your example has a different ID for each record so I don't
see how that demonstrates what you are asking about.
Have you tried setting a compound index on those two fields
with the Ignore Nulls property set to Yes? If so, why is it
insufficient?
If that won't do it and from what I can tell, your question
does not have a simple generic answer. I really need to
understand the details of how a parent record links to its
child records so I can try to come up with an approach the
fits your situation.
If the subform records might be filtered, the solution may
be different than if **all** of the parent record's child
records are guaranteed to be displayed in the subform.