Sorry for the cryptic subject line - didn't how to describe it!

I have a checkbox on a form. When the checkbox is checked I want a textbox underneath to become enabled and when the checkbox is NOT checked, I want the textbox to be NOT enabled. Any idea why this won't work:?

Private Sub chkbox1_Click()
If chkbox1.value = true then
txtbox1.Enabled = True
else
txtbox1.Enabled = false
End If
End Sub


Simon Pearce
Network Manager
Higher Side School