Nightowl4933
Tryin' to do it right...
- Local time
- Today, 21:26
- Joined
- Apr 27, 2016
- Messages
- 151
Hello.
I'm trying to hide fields and labels on a simple form using the following After Update Event Procedure of a Frame:
Private Sub Frame614_AfterUpdate()
If Me.Frame614.Value = 1 Then
With Me
.Expiry.Visible = False
.Limit.Visible = False
.Text560.Visible = False
End With
ElseIf Me.Frame614.Value = 2 Then
With Me
.Expiry.Visible = True
.Limit.Visible = False
.Text560.Visible = True
End With
ElseIf Me.Frame614.Value = 3 Then
With Me
.Expiry.Visible = False
.Limit.Visible = True
.Text560.Visible = True
End With
End If
End Sub
...except it doesn't work :banghead:
I've also tried something similar with the GotFocus Event Procedure of an Option button as follows:
Private Sub Option617_GotFocus()
With Me
.Expiry.Visible = False
.Limit.Visible = False
.Text560.Visible = False
End With
End Sub
...but this doesn't work either.
Would some kind soul tell me how I can achieve this simple task, please?
Thank you.
I'm trying to hide fields and labels on a simple form using the following After Update Event Procedure of a Frame:
Private Sub Frame614_AfterUpdate()
If Me.Frame614.Value = 1 Then
With Me
.Expiry.Visible = False
.Limit.Visible = False
.Text560.Visible = False
End With
ElseIf Me.Frame614.Value = 2 Then
With Me
.Expiry.Visible = True
.Limit.Visible = False
.Text560.Visible = True
End With
ElseIf Me.Frame614.Value = 3 Then
With Me
.Expiry.Visible = False
.Limit.Visible = True
.Text560.Visible = True
End With
End If
End Sub
...except it doesn't work :banghead:
I've also tried something similar with the GotFocus Event Procedure of an Option button as follows:
Private Sub Option617_GotFocus()
With Me
.Expiry.Visible = False
.Limit.Visible = False
.Text560.Visible = False
End With
End Sub
...but this doesn't work either.
Would some kind soul tell me how I can achieve this simple task, please?
Thank you.