T
thefonz37
I'm trying to get a comments field to expand when clicking a label on a form
and then contract when it is clicked again. I have the follow code, but it's
not working.
Txt65 is the name of the control I'm trying to expand.
Private Sub Label64_Click()
If Label64.Caption = "+ Show Comments" Then
Label64.Caption = "- Hide Comments"
Text65.Height = 0
Detail.Height = 0
Else
Label64.Caption = "+ Show Comments"
Text65.Height = 50
Detail.Height = 50
End If
End Sub
and then contract when it is clicked again. I have the follow code, but it's
not working.
Txt65 is the name of the control I'm trying to expand.
Private Sub Label64_Click()
If Label64.Caption = "+ Show Comments" Then
Label64.Caption = "- Hide Comments"
Text65.Height = 0
Detail.Height = 0
Else
Label64.Caption = "+ Show Comments"
Text65.Height = 50
Detail.Height = 50
End If
End Sub