I am having issues hiding a field. Basically, I have two fields. One is a CheckBox. The other is a Textfield.
IF the CheckBox is Checked, then I want to "show" the Textfield. If it is not checked, then I want to hide the textfield. I do this by setting the Textfield property to visible=no. And I have the following VBA code.
Private Sub CheckBox_AfterUpdate()
Dim selCheckBox As Boolean
selCheckBox = Me.[IsInDDS]
Select Case selCheckBox
Case "True"
Me.[TextField].Visible = True
Case "False"
Me.[TextField].Visible = False
End Select
End Sub
This works as I want.
But everytime I load the form, I want "TextField" to be displayed if there is a value in it (or if CheckBox is checked yes).