I have a Form with Tabs inside it. On one page I would like one field to not be visible if another field has "Yes" in it. However, I can not get the code to work. I inserted this code into VB and then changed from Design view to Form view and it doesnt appear to work. I looked around on the net and many say to use OnCurrent, but I dont even have that option so I went with BeforeUpdate
Code:
Private Sub R9790_SN_BeforeUpdate(Cancel As Integer)
If Me.Fld9790 = "Yes" Then
Me.R9790_SN.Visible = True
Me.SD.Visible = False
Else
Me.R9790_SN.Visible = False
Me.SD.Visible = True
End If
End Sub