G
Guest
Good day,
Here is what I am trying to do,
In a subform I have a dropdown menu (Combo box) that has different machines.
Certain information is required inorder to calculate a rate. Basically, If
the user selects a machine and one of the fields is empty a message box comes
up saying "Incomplete information" otherwise if all the information is there
then it does the caculation.
Here is my code however it is not working properly. The message box comes up
when ift is supposed to however the field PCS_HR does not return the value of
1 Any Help would be greatly appreciated.
Private Sub UOM_LostFocus()
IIf [PIECES] = 0, MsgBox("Incomplete Information. Number of PCS/CUT Required
for this process"), PCS_HR = 1
End Sub
Thanks for your help in advance
Here is what I am trying to do,
In a subform I have a dropdown menu (Combo box) that has different machines.
Certain information is required inorder to calculate a rate. Basically, If
the user selects a machine and one of the fields is empty a message box comes
up saying "Incomplete information" otherwise if all the information is there
then it does the caculation.
Here is my code however it is not working properly. The message box comes up
when ift is supposed to however the field PCS_HR does not return the value of
1 Any Help would be greatly appreciated.
Private Sub UOM_LostFocus()
IIf [PIECES] = 0, MsgBox("Incomplete Information. Number of PCS/CUT Required
for this process"), PCS_HR = 1
End Sub
Thanks for your help in advance