G
Guest
Would like to have a status automatically change based on answers to
questions. Some of the "If, Then" statements are working and the status is
changing as expected. Others are not. Any help that can be provided is
appreciated.
Here is current code:
Private Sub CA_Completion_Acceptable__AfterUpdate()
If Me.[CA Completion Acceptable?] = -1 And Me.[CA Completion Notification
Submitted?] = -1 And Me.[CA Response Acceptable?] = -1 And Me.[CAR Response
Submitted?] = -1 And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CA Closure"
End Sub
Private Sub CA_Completion_Notification_Submitted__AfterUpdate()
If Me.[CA Completion Notification Submitted?] = -1 And Me.[CA Response
Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?]
= -1 Then
Me.CAR_Status = "CA Verification"
End If
End Sub
Private Sub CA_Ready_to_Close__AfterUpdate()
If Me.[CA Ready to Close?] = -1 And Me.[CA Completion Acceptable?] = -1 And
Me.[CA Completion Notification Submitted?] = -1 And Me.[CA Response
Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?]
= -1 Then
Me.CAR_Status = "Closed"
End If
End Sub
Private Sub CA_Response_Acceptable__AfterUpdate()
If Me.[CA Response Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1
And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CA Completion Notification"
End If
End Sub
Private Sub CAR_Issued__AfterUpdate()
If Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CAR Response"
Else
Me.CAR_Status = Null
End If
End Sub
Private Sub CAR_Response_Submitted__AfterUpdate()
If Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CAR Response Evaluation"
End If
End Sub
questions. Some of the "If, Then" statements are working and the status is
changing as expected. Others are not. Any help that can be provided is
appreciated.
Here is current code:
Private Sub CA_Completion_Acceptable__AfterUpdate()
If Me.[CA Completion Acceptable?] = -1 And Me.[CA Completion Notification
Submitted?] = -1 And Me.[CA Response Acceptable?] = -1 And Me.[CAR Response
Submitted?] = -1 And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CA Closure"
End Sub
Private Sub CA_Completion_Notification_Submitted__AfterUpdate()
If Me.[CA Completion Notification Submitted?] = -1 And Me.[CA Response
Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?]
= -1 Then
Me.CAR_Status = "CA Verification"
End If
End Sub
Private Sub CA_Ready_to_Close__AfterUpdate()
If Me.[CA Ready to Close?] = -1 And Me.[CA Completion Acceptable?] = -1 And
Me.[CA Completion Notification Submitted?] = -1 And Me.[CA Response
Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?]
= -1 Then
Me.CAR_Status = "Closed"
End If
End Sub
Private Sub CA_Response_Acceptable__AfterUpdate()
If Me.[CA Response Acceptable?] = -1 And Me.[CAR Response Submitted?] = -1
And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CA Completion Notification"
End If
End Sub
Private Sub CAR_Issued__AfterUpdate()
If Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CAR Response"
Else
Me.CAR_Status = Null
End If
End Sub
Private Sub CAR_Response_Submitted__AfterUpdate()
If Me.[CAR Response Submitted?] = -1 And Me.[CAR Issued?] = -1 Then
Me.CAR_Status = "CAR Response Evaluation"
End If
End Sub