Hi. I'm using option group with value 1 and value 2 with a command button to open two different forms.
This is the code:
I would like to close form's option group once clicked the command button after the opening of the requested value form.
I tried Docmd.close but all I get is the option group no more working
This is the code:
Code:
Private Sub Command9_Click()
Dim strForm As String
Select Case Me.Cornice0
Case Is = 1
strForm = "FRMMeseCorrentePrestazioni" ' Open contracts form
DoCmd.OpenForm strForm ' Open required form
Case Is = 2
strForm = "FRMMesePrecedentePrestazioni" ' Open main form
DoCmd.OpenForm strForm ' Open required form
End Select
End Sub
I would like to close form's option group once clicked the command button after the opening of the requested value form.
I tried Docmd.close but all I get is the option group no more working