The Enabled Property

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have 3 checkboxes. The idea is that when one is checked it enables 2 other
text boxes. Here is the code:

Private Sub chkCourse_AfterUpdate()

If chkCourse = True Then
CheckBoxTrue 1
Me!Where.Enabled = True
Me!When.Enabled = True
Else:
Me!When.Enabled = False
Me!Where.Enabled = False
CheckboxFalse 1
DeleteRecordset "TypeOfParticipantInfo"
End If

End Sub

The problem is I am getting this error message "Run-Time error 438" Object
doesn't support this property or method. Is that the Enabled property is not
supported by check boxes?

Thanks for your help
 
'The line is meaningless. What are you wanting to do?
CheckboxFalse 1
Are you saying that this does not tell Access to disable the other two
fields. The idea is that once the relevant checkboxes are checked that Access
would enable two text fields called WHERE and WHEN. The Enabled field in
their individual properties window is set to know. I am no longer getting an
error message, but when I check the boxes these fields are not "enabling."
 
Back
Top