vaughan198
Registered User.
- Local time
- Today, 11:10
- Joined
- Nov 16, 2011
- Messages
- 40
Hi there,
I have a text box on a form that I want to be required if a checkbox is ticked. I dont want to make the field in the table requried as it depends on the checkbox.
I can use this code to make the field enabled when the check box is selected:
But if I use Box.Required = True then I get errors.
Is there anyway to do this?
Thanks
I have a text box on a form that I want to be required if a checkbox is ticked. I dont want to make the field in the table requried as it depends on the checkbox.
I can use this code to make the field enabled when the check box is selected:
Code:
Private Sub chkbox_Click()
If chkbox = True Then
Box.Enabled = True
Else
Box.Enabled = False
End If
End Sub
But if I use Box.Required = True then I get errors.
Is there anyway to do this?
Thanks