I would think this would be simple. I am trying to determine if Request_Status (a combobox) is updated to Completed or Rejected and if it is to update a date field on the form (Completed) to today's date if the table field for the completed date (tbl_PSSA_Requests.Completed) is blank.
I am getting a Run-Time error 13 Type Mismatch on the first If statement below. The first time I got the error I didn't have a variable and checked the form field directly. Am I not referencing the the text box of the combobox correctly?
Below is my code?
Private Sub Request_Status_AfterUpdate()
Dim status_value As String
status_value = Me.Request_Status.Text
If status_value = "Completed" Or "Rejected" Then
If tbl_PSSA_Requests.Completed Is Null Then
Me.Completed = Date
Me.Completed.Requery
End If
End If
End Sub
Thank you.
I am getting a Run-Time error 13 Type Mismatch on the first If statement below. The first time I got the error I didn't have a variable and checked the form field directly. Am I not referencing the the text box of the combobox correctly?
Below is my code?
Private Sub Request_Status_AfterUpdate()
Dim status_value As String
status_value = Me.Request_Status.Text
If status_value = "Completed" Or "Rejected" Then
If tbl_PSSA_Requests.Completed Is Null Then
Me.Completed = Date
Me.Completed.Requery
End If
End If
End Sub
Thank you.