V
Very Basic User
Hello,
I have two fields in my form that I want to interact "Status" and "Date
Completed" the code below gets me close, but does not look for the second
condition that I need it to. What I need in words is... (If Status =
completed and date completed is blank, then change date completed to now. If
both of these conditions are not met, leave the date completed alone. I need
the second condition so that if a user puts the status back to "in progress"
and then changes it back to completed, I don't want the original completed
date to change.
Thanks in advance for your help!
Private Sub Status_AfterUdate()
If Me![Status]=â€Completed†Then
Me![Actual completion date]=Now()
End if
End Sub
I have two fields in my form that I want to interact "Status" and "Date
Completed" the code below gets me close, but does not look for the second
condition that I need it to. What I need in words is... (If Status =
completed and date completed is blank, then change date completed to now. If
both of these conditions are not met, leave the date completed alone. I need
the second condition so that if a user puts the status back to "in progress"
and then changes it back to completed, I don't want the original completed
date to change.
Thanks in advance for your help!
Private Sub Status_AfterUdate()
If Me![Status]=â€Completed†Then
Me![Actual completion date]=Now()
End if
End Sub