Hi
I have a No/Yes Option Group which defaults to No but when Yes is selected makes a Combo Box and two Command Buttons visible.
All works so far (code below).
My problem is twofold;
1) If I choose Yes on a record and then navigate to another record the Combo Box and Command Buttons are visible there irrespective of the No/Yes option.
2) If I close the database and start a new session the Combo Box and Command Buttons are not visible even if Yes is highlighted as being selected previously.
Any help would be greatly appreciated as I am stumped.
McHooty
Private Sub Frame221_AfterUpdate()
With Me.Collection_Name_Combo
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Collection_Name_Combo_Label
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Add_Collection
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Display_Collections
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
End Sub
I have a No/Yes Option Group which defaults to No but when Yes is selected makes a Combo Box and two Command Buttons visible.
All works so far (code below).
My problem is twofold;
1) If I choose Yes on a record and then navigate to another record the Combo Box and Command Buttons are visible there irrespective of the No/Yes option.
2) If I close the database and start a new session the Combo Box and Command Buttons are not visible even if Yes is highlighted as being selected previously.
Any help would be greatly appreciated as I am stumped.
McHooty
Private Sub Frame221_AfterUpdate()
With Me.Collection_Name_Combo
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Collection_Name_Combo_Label
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Add_Collection
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
With Me.Display_Collections
Select Case Me.Frame221.Value
Case 1 'Yes
.Visible = True
Case 2 'No
.Visible = False
End Select
End With
End Sub