G
Gordon
I have a form which can be called from a number of other forms.
Depending on the calling form, different actions are perfomed in the
called form. I use the following code in the load event of the called
form:
Private Sub Form_Load()
Dim frmCalling As Form
Set frmCalling = Screen.ActiveForm
Select Case frmCalling.Name
Case "frmDiscs"
etc etc
Case "frmVocalArrangements"
..etc etc.
Case Else
...
.....
End Select
End Sub
The problem I have is that on frmDiscs, the form can be called from 2
different controls (in fact in a subform of frmDiscs). Again,
depending upon which control the form is being called from (by a
double click event), I want to perform different actions when the
called form is loaded.
How can I achieve this? Is there a way I can put a case statement
within the first case statement above to determine the control that is
firing the event?
Thanks for any help.
Gordon
Depending on the calling form, different actions are perfomed in the
called form. I use the following code in the load event of the called
form:
Private Sub Form_Load()
Dim frmCalling As Form
Set frmCalling = Screen.ActiveForm
Select Case frmCalling.Name
Case "frmDiscs"
etc etc
Case "frmVocalArrangements"
..etc etc.
Case Else
...
.....
End Select
End Sub
The problem I have is that on frmDiscs, the form can be called from 2
different controls (in fact in a subform of frmDiscs). Again,
depending upon which control the form is being called from (by a
double click event), I want to perform different actions when the
called form is loaded.
How can I achieve this? Is there a way I can put a case statement
within the first case statement above to determine the control that is
firing the event?
Thanks for any help.
Gordon