Hi there,

Basically, my form has 5 groupboxes with 4 radiobuttons in each groupbox, and I also have 3 textboxes. I have a button in the form in which I can go back to the main screen, and likewise, a button in the main screen to go back to this form.

So when I select the radiobuttons in the groupboxes, and i clicked the main screen, and back to the form, it will clear all selections, including the textboxes. I was able to do that, but if I didn't select any of the radiobuttons, and I clicked the main screen button, it will have an error. "Object reference not set to an instance of an object."

Code:
 Me.RadioButtons.Checked = False
        Me.RadioButtons1.Checked = False
        Me.RadioButtons2.Checked = False
        Me.RadioButtons3.Checked = False
        Me.RadioButtons4.Checked = False
This is part of my code in the Main Screen button.

Any idea how? Thanks.