RitaMoloney
Registered User.
- Local time
- Yesterday, 21:43
- Joined
- May 6, 2004
- Messages
- 50
Hi,
On my form frmOrders, I have a calculated control called UnitsonHand.This calculates the total units when a product is being ordered or re-ordered. This is the calculation:
=([QtyPerUnit]*[Quantity]+[UnitsInStock]).
I need this value to be stored in UnitsInStock in a table called tblStore.
When the user opens frmOrders and orders or re-orders a product the total unit will be calculated to the control called UnitsonHand. Now, if I had some sort of code to attach to the On_change event of this control, so that when the value changes it will automatically save it to UnitsInStock or if the value does not change it dose nothing.
I hope this makes since, I am sure this is easy to someone that know vb but I am just starting to learn it and I am not sure how to put this code together. If anyone could let me know I would really appriciate it.
I know that your are not suppose to save calculations but I really want to this time.
Thanks in advance,
On my form frmOrders, I have a calculated control called UnitsonHand.This calculates the total units when a product is being ordered or re-ordered. This is the calculation:
=([QtyPerUnit]*[Quantity]+[UnitsInStock]).
I need this value to be stored in UnitsInStock in a table called tblStore.
When the user opens frmOrders and orders or re-orders a product the total unit will be calculated to the control called UnitsonHand. Now, if I had some sort of code to attach to the On_change event of this control, so that when the value changes it will automatically save it to UnitsInStock or if the value does not change it dose nothing.
I hope this makes since, I am sure this is easy to someone that know vb but I am just starting to learn it and I am not sure how to put this code together. If anyone could let me know I would really appriciate it.
I know that your are not suppose to save calculations but I really want to this time.
Thanks in advance,