I have this code that works only half way, im not sure how to complete it. I want a checkbox that when ticked it the radio button is visible, then when unticked the radio button is hidden. Here is the code i have so far:
Private Sub checkbox_click()
If Me.checkbox = "true" Then
Me.radio.Visible = "true"
Me.radio.Visible = "false"
Here is the problem, when I tick the checkbox the radio button dissapears. when i untick the checkbox the radio button still stays hidden. Can anyone help me with this please?
Nevermind I switched the event from afterupdate to onchange and it worked. But now, if I goto another form then back again the radios stay hidden. How do I make the radios stay visible or stay hidden based on whats in the record? In other words if table>record>field = =value then set radio.visible = true or something like that. Thanks.