I have two check boxes; If I click on the first the box is checked, if I click on the second, I want the first box to uncheck and the second to be checked. I thought this code would do the job, but it's working like I want. What do I need to do here?

VB Code:
  1. 'for check box's 1 or 2 only one can be checked
  2.    If Checkbox(1).Value = 1 Then
  3.         Checkbox(2).Value = 0
  4.    End If
  5.  
  6.    If Checkbox(2).Value = 1 Then
  7.          Checkbox(1).Value = 0
  8.    End If