J
Jaybird
I'm close, but get no cigar... Can anybody please tell me the proper syntax
for refreshing or requerying a combobox on a subform that is embedded within
another subform from another subform on the mainform? I'm trying to set it
up (in the AfterUpdate event property of the Chrgs field on Subform1) so that
changes made to the Chrgs field on subform1 causes the cboLineItems combobox
on Sub-Subform2 to be refreshed or requeried, so that a calculated textbox on
the same sub-subform can be recalculated?
I know that's a mouthful... If you need further clarification, I will
describe my setup in further detail: I have a main form with two subforms.
Subform1 has a textbox on it (textbox [Chrgs]) that must sometimes be
updated. I would like the AfterUpdate control of this textbox to trigger a
refresh or requery of a combobox on a subform that is embedded within the
second subform (Subform2) on my main form. I call this embedded subform
Sub-Subform2. The combobox on Sub-Subform2 is called KEYNUM. Once this
combobox is requeried, I need a calculated text box (also on Sub-Subform2) to
be recalculated so that changes to my Chrgs textbox on Subform1 will be
reflected in the Line Totals calculations that take place on Sub-Suform2.
My code is currently this:
Private Sub ChrgPartNumber_AfterUpdate()
Me.Parent!sbfHDRPLAT.Form!sbfLINPLAT.Form.Dirty = False
Me.Parent!sbfHDRPLAT.Form!sbfLINPLAT.Form!KEYNUM.Recalc
But I get a "Object doesn't support this property or method (Error 438)"
message.
Help will be greatly appreciated!
End Sub
for refreshing or requerying a combobox on a subform that is embedded within
another subform from another subform on the mainform? I'm trying to set it
up (in the AfterUpdate event property of the Chrgs field on Subform1) so that
changes made to the Chrgs field on subform1 causes the cboLineItems combobox
on Sub-Subform2 to be refreshed or requeried, so that a calculated textbox on
the same sub-subform can be recalculated?
I know that's a mouthful... If you need further clarification, I will
describe my setup in further detail: I have a main form with two subforms.
Subform1 has a textbox on it (textbox [Chrgs]) that must sometimes be
updated. I would like the AfterUpdate control of this textbox to trigger a
refresh or requery of a combobox on a subform that is embedded within the
second subform (Subform2) on my main form. I call this embedded subform
Sub-Subform2. The combobox on Sub-Subform2 is called KEYNUM. Once this
combobox is requeried, I need a calculated text box (also on Sub-Subform2) to
be recalculated so that changes to my Chrgs textbox on Subform1 will be
reflected in the Line Totals calculations that take place on Sub-Suform2.
My code is currently this:
Private Sub ChrgPartNumber_AfterUpdate()
Me.Parent!sbfHDRPLAT.Form!sbfLINPLAT.Form.Dirty = False
Me.Parent!sbfHDRPLAT.Form!sbfLINPLAT.Form!KEYNUM.Recalc
But I get a "Object doesn't support this property or method (Error 438)"
message.
Help will be greatly appreciated!
End Sub