Hi Gordon..,
yes formula is right..
oEdit=oForm.Items.Item("txtAQty").Specific
oEdit1 = oForm.Items.Item("txtQty").Specific
oEdit2 = oForm.Items.Item("txtPQty").Specific
oEdit2.Value = Val(oEdit2.Value) - Val(oEdit.Value)
and this is in For loop
Thanks
M G