L
ldiaz
Hello all.'
I would like to have this in an before event.
Dim StrProducedQty as string
I don't know how get this sum...
StrProducedQty = sum [Produced_Qty] from table [tbl_WOProduced] where
[tbl_WOProduced] is equal to this control on the subform (Work_OrderN)
Note: These are my forms and subform names.
FormName: frm_Production_Report
SubformName: sfrm_WOProduced
If StrProducedQty + me.Produced_Qty > WOQty Then
MsgBox "Qty exceed the valance of the WO, type a lower value than the
valance", vbCritical, "Qty exceeded"
Cancel = True
End If
I would like to have this in an before event.
Dim StrProducedQty as string
I don't know how get this sum...
StrProducedQty = sum [Produced_Qty] from table [tbl_WOProduced] where
[tbl_WOProduced] is equal to this control on the subform (Work_OrderN)
Note: These are my forms and subform names.
FormName: frm_Production_Report
SubformName: sfrm_WOProduced
If StrProducedQty + me.Produced_Qty > WOQty Then
MsgBox "Qty exceed the valance of the WO, type a lower value than the
valance", vbCritical, "Qty exceeded"
Cancel = True
End If