Why does this give me a runtime error 424 ... object required


VB Code:
  1. Public Sub Opt(chkbox As CheckBox)
  2. If chkbox.Value = False Then
  3.     chkbox.Caption = "Add"
  4. ElseIf chkbox.Value = True Then
  5.     chkbox.Caption = "Option"
  6. End If
  7.  
  8. End Sub

Seahag