J
john
I have a generic form that I use to edit the list of combo & list boxes. On
the close event of it I want to re-query the calling list or combo box. I
cannot open it as an acDialog form and just have the re-query in the calling
code, because it needs to run code after the form is called to set certain
properties.
I am trying to send explicit control info thru OpenArgs such as the
following, which is then to be used in the close event of the generic form.
But I get a run time error 424, object required , on the set ctl line.
forms!frmMain!frmAccountingTabs!frmProjectTactical!ListPercent
Private Sub Form_Close()
Dim ctl As Control
Set ctl = Me.OpenArgs
With ctl
.Requery
End With
End sub
the close event of it I want to re-query the calling list or combo box. I
cannot open it as an acDialog form and just have the re-query in the calling
code, because it needs to run code after the form is called to set certain
properties.
I am trying to send explicit control info thru OpenArgs such as the
following, which is then to be used in the close event of the generic form.
But I get a run time error 424, object required , on the set ctl line.
forms!frmMain!frmAccountingTabs!frmProjectTactical!ListPercent
Private Sub Form_Close()
Dim ctl As Control
Set ctl = Me.OpenArgs
With ctl
.Requery
End With
End sub