Hide Subform Using Option Group
Hi Expert,
I am unable to hide subform from masterform using option group. The subform still be displayed in masterform althrough applying Docmd.close... Can you give me a help?
Here is my coding:
Private Sub opt_trans_AfterUpdate()
Dim ctl As Control
Select Case opt_trans.Value
Case 1
DoCmd.Close acForm, "trans_sell subform", acSaveYes
DoCmd.Requery
Case 2
DoCmd.Close acForm, "trans_buy subform", acSaveYes
DoCmd.Requery
Case 3
DoCmd.Requery
End Select
End Sub
Thanks and Best Regards,
Martin :D:D:D
|