E
elburze
I have [master form], [subform1], and [subform2]
I want [subform2] to refresh after BarcodeID in [subform1] is updated.
In [subform1] for BarcodeID control I have:
Private Sub BarcodeID_AfterUpdate() 'in subform1
'Me.Parent.subform2.Requery
'Forms!subform2.Requery
'Me.Parent.requerySubform2 'calls a public sub in [master form]
End Sub
Public Sub requerySubform2() 'in [master form]
subform2.Requery
End Sub
but none of the commented out instructions work. Not even when calling
requerySubform2 (which works in master form, but does not work when called
from subform1!
So; my question is how to requery [subform2] from [subform1]?
or how to call procedures of [master form] or [subform2] from [subform1]?
I want [subform2] to refresh after BarcodeID in [subform1] is updated.
In [subform1] for BarcodeID control I have:
Private Sub BarcodeID_AfterUpdate() 'in subform1
'Me.Parent.subform2.Requery
'Forms!subform2.Requery
'Me.Parent.requerySubform2 'calls a public sub in [master form]
End Sub
Public Sub requerySubform2() 'in [master form]
subform2.Requery
End Sub
but none of the commented out instructions work. Not even when calling
requerySubform2 (which works in master form, but does not work when called
from subform1!
So; my question is how to requery [subform2] from [subform1]?
or how to call procedures of [master form] or [subform2] from [subform1]?