S
SG
Tony,
I get the later with no message see code below...
Private Sub Quantity_AfterUpdate()
Dim intQtyMsg As Integer
If Onhand(Me.ProductID) < Me.Quantity Then intQtyMsg = MsgBox("You are
trying to sell more items than you currently have in stock, do you want to
continue?", vbYesNo)
If intQtyMsg = vbYes Then
Exit Sub
Else
Me.Quantity = 0
End If
End Sub
P.S Thank you for your help so far much appreciated!
S
I get the later with no message see code below...
Private Sub Quantity_AfterUpdate()
Dim intQtyMsg As Integer
If Onhand(Me.ProductID) < Me.Quantity Then intQtyMsg = MsgBox("You are
trying to sell more items than you currently have in stock, do you want to
continue?", vbYesNo)
If intQtyMsg = vbYes Then
Exit Sub
Else
Me.Quantity = 0
End If
End Sub
P.S Thank you for your help so far much appreciated!
S