Form, 2 subforms (Access 2002)
The Form allows one to change the recordsource of the Form after opening:
Forms("Form").RecordSource = "alt_query"
The record subset for the Form comes out right, but the two subforms look as if they lost their link or did not load.
The new recordsource's query does have the Master Link field, so that's not the problem.
If I return to the original recordsource via the interface, all looks good again.
Following with link rebuild doesn't seem to help:
Forms("Form")!subform_1.LinkMasterFields = "PID_Proj"
Forms("Form")!subform_1.LinkChildFields = "FID_Proj"
I also requery the subforms. No good.
Any ideas?
[purple]_______________________________
Never confuse movement with action -- E. Hemingway [/purple]
The Form allows one to change the recordsource of the Form after opening:
Forms("Form").RecordSource = "alt_query"
The record subset for the Form comes out right, but the two subforms look as if they lost their link or did not load.
The new recordsource's query does have the Master Link field, so that's not the problem.
If I return to the original recordsource via the interface, all looks good again.
Following with link rebuild doesn't seem to help:
Forms("Form")!subform_1.LinkMasterFields = "PID_Proj"
Forms("Form")!subform_1.LinkChildFields = "FID_Proj"
I also requery the subforms. No good.
Any ideas?
[purple]_______________________________
Never confuse movement with action -- E. Hemingway [/purple]