nakamichie
Registered User.
- Local time
- Today, 08:09
- Joined
- Apr 8, 2015
- Messages
- 16
Hello,
I was doing fine on my form creation but now I am getting the error message of runt time error 2448.
It worked totally fine on another form but now on a new form it is no longer working and giving me this error. What I am trying to do is after a Combobox is changed and if a specific record is picked it will update a combobox on a subform that is child linked to the main form. But this error shows up each time I change the main form combo box:
Private Sub IllnessID_AfterUpdate()
If Me.IllnessID.Column(1) Like "*Cancer*" Then
Me.EmployeeSubform.Form!Priority.Value = "A - Urgent"
Me.ISO = 0
ElseIf Me.IllnessID = 51 Or Me.IllnessID = 52 Or Me.IllnessID = 120 Or Me.IllnessID = 126 Or Me.IllnessID = 84 Then
Me.ISO = -1
Me.EmployeeSubform.Form!Priority.Value = "C - Medical Lines, Low"
Else
Me.EmployeeSubform.Form!Priority.Value = "C - Medical Lines, Low"
Me.ISO = 0
End If
I have searched around and changed my Me. to a Me! or used the full path but nothing fixes it. Any help would be great. I am a newbie here. Thanks.
I was doing fine on my form creation but now I am getting the error message of runt time error 2448.
It worked totally fine on another form but now on a new form it is no longer working and giving me this error. What I am trying to do is after a Combobox is changed and if a specific record is picked it will update a combobox on a subform that is child linked to the main form. But this error shows up each time I change the main form combo box:
Private Sub IllnessID_AfterUpdate()
If Me.IllnessID.Column(1) Like "*Cancer*" Then
Me.EmployeeSubform.Form!Priority.Value = "A - Urgent"
Me.ISO = 0
ElseIf Me.IllnessID = 51 Or Me.IllnessID = 52 Or Me.IllnessID = 120 Or Me.IllnessID = 126 Or Me.IllnessID = 84 Then
Me.ISO = -1
Me.EmployeeSubform.Form!Priority.Value = "C - Medical Lines, Low"
Else
Me.EmployeeSubform.Form!Priority.Value = "C - Medical Lines, Low"
Me.ISO = 0
End If
I have searched around and changed my Me. to a Me! or used the full path but nothing fixes it. Any help would be great. I am a newbie here. Thanks.