M
Maury Markowitz
I have a tabControl embedded in a form. The tabControl has a subform
in it. I would like to set the value of a field in the "parent" form
when the user double-clicks in a field in the subform. I'm sure this
is a simple syntax error, but this doesn't work:
Private Sub TickerField_DblClick(Cancel As Integer)
Parent.Form.accountId = Me.accountId
Call Forms("Main Screen").accountId_AfterUpdate
End Sub
The first line works as expected, and the parent form's field is set
properly. However, I then have to run some utility code to set various
other fields based on it, and I can't get the syntax of the call
right.
Maury
in it. I would like to set the value of a field in the "parent" form
when the user double-clicks in a field in the subform. I'm sure this
is a simple syntax error, but this doesn't work:
Private Sub TickerField_DblClick(Cancel As Integer)
Parent.Form.accountId = Me.accountId
Call Forms("Main Screen").accountId_AfterUpdate
End Sub
The first line works as expected, and the parent form's field is set
properly. However, I then have to run some utility code to set various
other fields based on it, and I can't get the syntax of the call
right.
Maury