R
R Marko
After updating a combo box, I would like to populate another field with
today's date.
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" Then
Me![DATECLOSED] = Date
End If
End Sub
This works beautifully, however, I would like to add a few more If options.
I've tried:
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" or "No Business" or "Lost to Comp" Then
Me![DATECLOSED] = Date
End If
End Sub
I also unsuccessfully tried:
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" Then
Me![DATECLOSED] = Date
If ([STATUS]) = "No Business" Then
Me![DATECLOSED] = Date
End If
End Sub
Can someone help me, please.
today's date.
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" Then
Me![DATECLOSED] = Date
End If
End Sub
This works beautifully, however, I would like to add a few more If options.
I've tried:
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" or "No Business" or "Lost to Comp" Then
Me![DATECLOSED] = Date
End If
End Sub
I also unsuccessfully tried:
Private Sub CmbStatus_AfterUpdate()
If ([STATUS]) = "Closed" Then
Me![DATECLOSED] = Date
If ([STATUS]) = "No Business" Then
Me![DATECLOSED] = Date
End If
End Sub
Can someone help me, please.