P
Pawdnos
Could anybody please tell me why this code doesn't work when I use the "And"
to validate the next field on the form.
Private Sub TotalMasteringCost_AfterUpdate()
If Me.ChargeTo.Value = "Paul" And Me.TotalMasteringCost.Value > 0 Then
Me.WHV_.Value = Me.TotalMasteringCost / 2
Me.Corp_.Value = Me.TotalMasteringCost / 2
Else:
Me.WHV_.Value = 0
Me.Corp_.Value = 0
End If
End Sub
to validate the next field on the form.
Private Sub TotalMasteringCost_AfterUpdate()
If Me.ChargeTo.Value = "Paul" And Me.TotalMasteringCost.Value > 0 Then
Me.WHV_.Value = Me.TotalMasteringCost / 2
Me.Corp_.Value = Me.TotalMasteringCost / 2
Else:
Me.WHV_.Value = 0
Me.Corp_.Value = 0
End If
End Sub