S
Stephen
I have a form with multiple subforms. Simply described, here is the layout
MAINFORM = main form, unlinked
SubformA = Linked to MAINFORM by unique RecordID
SubformB = Linked to SubformA by SubRecordID
I am viewing RecordID 999 on the MainForm and it clearly shows all of the
related SubFormA and SubformB records (related to SubformA via SubRecordID)
When I move to RecordID 998, SubFormA and SubformB records properly
requery, but SubformB ONLY requeries if there are records in SubformA.
When I move to RecordID 997 on the MainForm (which does NOT have any related
SubFormA records), the SubformA requeries showing an empty recordset, yet
the SubformB still shows the records related to RecordID 998 (hence it did
not refresh/requery)
In the OnCurrent property of SubformA, I have the SubformB.Requery code
(which works correctly)
It appears that when there are no records in SubformA, the OnCurrent
property is not executed, hence SubformB never requeries.
How do I get SubformB to requery (and thus show no records) when there are
no records in SubformA?
-Stephen
MAINFORM = main form, unlinked
SubformA = Linked to MAINFORM by unique RecordID
SubformB = Linked to SubformA by SubRecordID
I am viewing RecordID 999 on the MainForm and it clearly shows all of the
related SubFormA and SubformB records (related to SubformA via SubRecordID)
When I move to RecordID 998, SubFormA and SubformB records properly
requery, but SubformB ONLY requeries if there are records in SubformA.
When I move to RecordID 997 on the MainForm (which does NOT have any related
SubFormA records), the SubformA requeries showing an empty recordset, yet
the SubformB still shows the records related to RecordID 998 (hence it did
not refresh/requery)
In the OnCurrent property of SubformA, I have the SubformB.Requery code
(which works correctly)
It appears that when there are no records in SubformA, the OnCurrent
property is not executed, hence SubformB never requeries.
How do I get SubformB to requery (and thus show no records) when there are
no records in SubformA?
-Stephen