RMTechie wrote:
[Quoted Text] >I have both parents and children in a table (with unique ID numbers). >I am making a form that will display a parents name and then all >children related to that parent. In order to do this, I made two >fields for each child named "Relationship1" and "Relationship2" that >contain a parent's ID number. > >I can successfully make subforms that match the parent's ID to the ID >number in Relationship1 OR ID number to Relationship2. However, I >would like to display the form if the parent's ID number occurs in >EITHER field. As far as I can tell, you can't like two child fields >to one master field. Is there another way of doing this?
You can simulate the Link Master/Child links by using criteria in the subform's record source query.
Relationship1 = Forms!mainform.parentid OR Relationship2 = Forms!mainform.parentid
Then whenever you navigate to a different main form record (i.e. different parentid), requery the subform (probably in the main form's Current event.
-- Marsh MVP [MS Access]
|