How to do 2 different things if condition is met

  • Thread starter Thread starter Darrell Childress
  • Start date Start date
D

Darrell Childress

I have the following code in the BeforeUpdate event of a field:

Private Sub Combo47_BeforeUpdate(Cancel As Integer)
If [Mfg/Engr] = "P" Or [Mfg/Engr] = "I" Or [Mfg/Engr] = "X" Or
[Mfg/Engr] = "DRP" Or [Mfg/Engr] = "P/I" Then
ShipReady = True
Else
ShipReady = False
End If

End Sub


I would like to add another "condition" that is totally separate from
the above: If the [Mfg/Engr] field = "M/E", then I want a macro called
mcrSetEngrDate to be run. How would I do that?
Thanks,
Darrell
 
Private Sub Combo47_BeforeUpdate(Cancel As Integer)
If Xxxx Then
do something
End If

If Zzzz Then
do something else
End If

End Sub
 
Back
Top