I have a form with subform displaying purchase orders from a pair of tables with a one-to-many relation. The main table is "PO Header" which contains POnumber, Requester, Date, etc. and a child table "PO Details" which contains POnmber, Description, Quantity, Cost, etc.
Displaying the appropriate PO for any search criterion that is contained in the "PO Header" table is no problem. But so far I have only been able to get the popup search form to find data contained in the currently displayed child records (PO Details).
I need to be able to find a key word that a user supplies in the Popup Search Form in the detail records, such as Description, and then display that PO on the underlying form.
I suspect one would open the child table in code, find a matching record, then move the record pointer of the main form to that POnumber. But I am not familiar enough with Access 97 to know exactly how that would be done. Assuming this would indeed be the appropriate way to accomplish this.
Some detailed guidance would be greatly appreciated.
Displaying the appropriate PO for any search criterion that is contained in the "PO Header" table is no problem. But so far I have only been able to get the popup search form to find data contained in the currently displayed child records (PO Details).
I need to be able to find a key word that a user supplies in the Popup Search Form in the detail records, such as Description, and then display that PO on the underlying form.
I suspect one would open the child table in code, find a matching record, then move the record pointer of the main form to that POnumber. But I am not familiar enough with Access 97 to know exactly how that would be done. Assuming this would indeed be the appropriate way to accomplish this.
Some detailed guidance would be greatly appreciated.