I have the following VBA code
Private Sub Form_Open(Cancel As Integer)
If Me.Text25 = "Theme" Then
Me.Text53.Visible = True
Me.Label54.Visible = True
Else
'MsgBox (test)
Me.Text53.Visible = True
Me.Label54.Visible = True
End If
End Sub
This code works fine when the form initially opens. However when I select another record I want the code to look at the value in textbox 25 and make textbox 53 visible if the value in textbox 25 has the text value Theme.
I have tried a number of ways to get this to work including putting the code in other areas and using me.requery.