D
djkenny
Guest
hello, im very new to access and am starting a new project...
1 combo box: "ExamOrCwk" // Exam;Coursework
field1: "DateDue" // this field needs to be enabled only if "coursework" is selected from the combo box, and disabled if exam is selcted or field is left blank
field2: "ExamDate" // almost same as before.. this field should be enabled only if exam is selcted and disabled if coursework is selcted or the field is left blank
this is the code i was using:
Private Sub ExamOrCwk_Change()
If [ExamOrCwk] = "Coursework" Then [ExamDate].Enabled = "False"
If [ExamOrCwk] = "Examination" Then [ExamDate].Enabled = "True"
End Sub
i keep getting errors but am unsure what to do with it
id appreciate any help anybody could give
thanks in advance!
1 combo box: "ExamOrCwk" // Exam;Coursework
field1: "DateDue" // this field needs to be enabled only if "coursework" is selected from the combo box, and disabled if exam is selcted or field is left blank
field2: "ExamDate" // almost same as before.. this field should be enabled only if exam is selcted and disabled if coursework is selcted or the field is left blank
this is the code i was using:
Private Sub ExamOrCwk_Change()
If [ExamOrCwk] = "Coursework" Then [ExamDate].Enabled = "False"
If [ExamOrCwk] = "Examination" Then [ExamDate].Enabled = "True"
End Sub
i keep getting errors but am unsure what to do with it
id appreciate any help anybody could give
thanks in advance!