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 :
Expand|Select|Wrap|Line Numbers
- 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...