I have the following in a text box in my subform footer to show the total of the remaining order items
=Sum([Quantity_Ordered]-[Quantity_Delivered])
Once this becomes 0 I want a msgbox to appear saying that the order can now go to despatch.
In the AfterUpdate of the text box above (named Sum) I have the following code
If Me.Sum = 0 Then
MsgBox "Order can now go to Despatch"
Cancel = True
End If
However this does not work, and I can not understand why! My VB is quite basic and I am stumped
Any suggestions?
=Sum([Quantity_Ordered]-[Quantity_Delivered])
Once this becomes 0 I want a msgbox to appear saying that the order can now go to despatch.
In the AfterUpdate of the text box above (named Sum) I have the following code
If Me.Sum = 0 Then
MsgBox "Order can now go to Despatch"
Cancel = True
End If
However this does not work, and I can not understand why! My VB is quite basic and I am stumped
Any suggestions?