I want to perform a function called cancelorderonexit provided that customerid is Null ,the Yes/No control ChkStorehouse is set to True or the Yes/No field ChkWarehouse is set to True . Unfortunately the function below does not obey me, and the code is performed even though the ChkStorehouse is set to Yes
If Not IsNull(Me![customerid]) Or IsNull(Me![ChkStorehouse]) Then
CancelOrderOnExit
DoCmd.CancelEvent
End If
What is wrong ?
If Not IsNull(Me![customerid]) Or IsNull(Me![ChkStorehouse]) Then
CancelOrderOnExit
DoCmd.CancelEvent
End If
What is wrong ?