hi i have a form that contain 2 text box (article and qty) and a next button .
when i click on the button a new form will open in datasheet view, contain 5 text box ( size, quantity, reference, article, qty_to_add).
i want when i change the qty_to_add to modify the stock quantity (quantity in the second form).
so i wrote this :
and it work fine but the problem is that sometime the quantity.value is null and when i modify the qty_to_add the stock quantity became null.
Any help please...
when i click on the button a new form will open in datasheet view, contain 5 text box ( size, quantity, reference, article, qty_to_add).
i want when i change the qty_to_add to modify the stock quantity (quantity in the second form).
so i wrote this :
Code:
Private Sub Add_AfterUpdate() Me.Qty.Value = Me.Qty.Value - Me.qty_to_Add.OldValue DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70 Me.Qty.Value = Me.Qty.Value + Me.qty_to_Add.Value End Sub
Any help please...
Comment