N
Nano
I have created a form and a sub form in it. I have radio buttons, now
what I want is that if first radio button is select Form-A opens in
subform and when I select second radio button, Form-B opens in
subform.
I have created a Event_Procedure for After_Update radio buttons like
this:
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub Radio_AfterUpdate()
On Error GoTo Radio_AfterUpdate_Err
If (Radio = 1) Then
subForm1.SourceObject = FormA
End If
If (Radio = 2) Then
subForm1.SourceObject = FormB
End If
Radio_AfterUpdate_Exit:
Exit Sub
Radio_AfterUpdate_Err:
MsgBox Error$
Resume Radio_AfterUpdate_Exit
End Sub
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
But now when I select the any of two buttons, no forms open and the
subform remains null. Kindly help, thanking you in anticipation.
Regards,
Hasnain Raja
what I want is that if first radio button is select Form-A opens in
subform and when I select second radio button, Form-B opens in
subform.
I have created a Event_Procedure for After_Update radio buttons like
this:
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
Private Sub Radio_AfterUpdate()
On Error GoTo Radio_AfterUpdate_Err
If (Radio = 1) Then
subForm1.SourceObject = FormA
End If
If (Radio = 2) Then
subForm1.SourceObject = FormB
End If
Radio_AfterUpdate_Exit:
Exit Sub
Radio_AfterUpdate_Err:
MsgBox Error$
Resume Radio_AfterUpdate_Exit
End Sub
--------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------
But now when I select the any of two buttons, no forms open and the
subform remains null. Kindly help, thanking you in anticipation.
Regards,
Hasnain Raja