Hello Everyone. I am working on a small database that currently has a single form with a yes/no option group named "ROption" and I would like to make a text box, named "RMargin" visible if the option "No" is selected in the group but make the text box "RMargin" invisible if the user selects "Yes" in the option group "ROption".
I cannot find a good example online to make it work correctly and was wondering if someone would have an example I could look at to see how it should be coded? This is what I have but it only makes the text box invisible if "Yes" is selected but does not make it visible when "No" is selected.
Code:
Private Sub ROption_AfterUpdate()
If Me.ROption = "No" Then
Me.RMargin.Visible = True
Else
Me.RMargin.Visible = False
End If
End Sub