I have Parent/Child tables with one set for each year, in a linked (archive) database. They are related on ID, ParentID. I want the user to select a year and be able to browse the data in datasheet view, with the plus sign to see the child table. Since the tables are in a linked database, the only way I have been able to achieve that is with a form/subform with Datasheet as the default view.
Perhaps there is a simpler method, but here is my difficulty.
On the click event that selects the year I open the parent form and set it's recordsource to the correct parent table. Then I build a query that selects the correct child table. The child table's record source is already set to the child query. The parent opens with the plus signs which display the fields of the child table but the child (+) shows only field headers, no child records nor record navigation items.
If I click open the child form, it's record set is the query whick is itself correctly defined and brings up the correct table.
There is a relationship defined, relating the parent to the child in a one-to-many relationship. I have tried a requery on the child form load event and that doesn't help.
Does anyone have any suggestions?