vegascaptain
New member
- Local time
- Today, 10:26
- Joined
- Nov 24, 2017
- Messages
- 3
Hi,
I have a Quantity field in an invoice that is of "Number" type. I have that number change my inventory when entered, or when I exit that invoice record. But, if I go back to that field and change the number, the inventory new number entered is subtracted again
I want to save the number in that field , so when I update the field, it does not subtract the new number from my inventory. I want it to add or subtract the difference of the old number and the new number in the Quantity field so the inventory remains correct.
So, I can get the number in the Quantity field with the OnClick function in VBA. But, I am trying to store the number, so when I click out of the record the AfterUpdate function will use the old number and add or subtract accordingly, so the inventory will reflect only the change in the value, not just the new value.
I am trying to use the Application.TempVars to store the value. But, I am not sure how to write the statement. Does that sound correct?
Sorry for the redundancy, just want to explain myself clearly.
I have a Quantity field in an invoice that is of "Number" type. I have that number change my inventory when entered, or when I exit that invoice record. But, if I go back to that field and change the number, the inventory new number entered is subtracted again
I want to save the number in that field , so when I update the field, it does not subtract the new number from my inventory. I want it to add or subtract the difference of the old number and the new number in the Quantity field so the inventory remains correct.
So, I can get the number in the Quantity field with the OnClick function in VBA. But, I am trying to store the number, so when I click out of the record the AfterUpdate function will use the old number and add or subtract accordingly, so the inventory will reflect only the change in the value, not just the new value.
I am trying to use the Application.TempVars to store the value. But, I am not sure how to write the statement. Does that sound correct?
Sorry for the redundancy, just want to explain myself clearly.