A
Agnelo Fernandes
I have a combobox of 'Courses'. Based on the course I select the visibility
of text box 'course date' is affected. By default - the course date text box
is set to invisible.
Eg: If I select undergraduate course only then the course date is visible
else its invisible. This works fine for me.
However, when i move from 1 record to another record. The visibility of the
course date text box is still true based on course I selected from the
previous record when i would actually want the 'course date' of the new
record to be invisible.
Can you help me in this? The code I used is:
Private Sub Other_AfterUpdate()
If Me.Other = "Introduction to Medicine" Or Me.Other = "Simulation
Instructor Training" Then
Me.CourseDate2.Visible = True
Else: Me.CourseDate2.Visible = False
End If
End Sub
Note: 'Other' is the name of combobox used to list a number of courses. Only
when 'introduction of medicine' or 'simulation instructor training' is
selected then coursedate2 text box becomes visibile else its invisible.
of text box 'course date' is affected. By default - the course date text box
is set to invisible.
Eg: If I select undergraduate course only then the course date is visible
else its invisible. This works fine for me.
However, when i move from 1 record to another record. The visibility of the
course date text box is still true based on course I selected from the
previous record when i would actually want the 'course date' of the new
record to be invisible.
Can you help me in this? The code I used is:
Private Sub Other_AfterUpdate()
If Me.Other = "Introduction to Medicine" Or Me.Other = "Simulation
Instructor Training" Then
Me.CourseDate2.Visible = True
Else: Me.CourseDate2.Visible = False
End If
End Sub
Note: 'Other' is the name of combobox used to list a number of courses. Only
when 'introduction of medicine' or 'simulation instructor training' is
selected then coursedate2 text box becomes visibile else its invisible.