Robbyp2001
Registered User.
- Local time
- Tomorrow, 01:19
- Joined
- Oct 8, 2011
- Messages
- 143
Good Morning everyone
I wonder if anyone will be kind enough to help with this problem.
I have a form [AddNewStock] which is based on a table [ItemBalance]. [ItemBalance] holds information on each unique item, includimg [ItemID], [Name] and the numbers in stock [Total]. The form shows [ItemID], [Name], [Price] and [Total]. There is also a box called [NewStock] which is a number field. This box is for the user to enter the number of new delivery items for each Item.
What I am trying to achieve is, when the user enters a number in [AddNewStock]![NewStock] an AfterUpdate event will add this to the existing balance in [ItemBalance]![Total] and new total displayed in real time in [AddNewStock]![Total], so that the user can feel confident that the process has been done successfully.
I have tried a number of different ways to do this including appending the [NewStock] number to a temporary table where the new balance is calculated and updated back to [ItemBalance]![Total].
Although I can get it to work, it seems a rather clumsy way to simply add a number to another number in a different table. I'm sure some of the code wizards on here will have a simpler way of achieving this.
Any suggestions?
Thanks folks
I wonder if anyone will be kind enough to help with this problem.
I have a form [AddNewStock] which is based on a table [ItemBalance]. [ItemBalance] holds information on each unique item, includimg [ItemID], [Name] and the numbers in stock [Total]. The form shows [ItemID], [Name], [Price] and [Total]. There is also a box called [NewStock] which is a number field. This box is for the user to enter the number of new delivery items for each Item.
What I am trying to achieve is, when the user enters a number in [AddNewStock]![NewStock] an AfterUpdate event will add this to the existing balance in [ItemBalance]![Total] and new total displayed in real time in [AddNewStock]![Total], so that the user can feel confident that the process has been done successfully.
I have tried a number of different ways to do this including appending the [NewStock] number to a temporary table where the new balance is calculated and updated back to [ItemBalance]![Total].
Although I can get it to work, it seems a rather clumsy way to simply add a number to another number in a different table. I'm sure some of the code wizards on here will have a simpler way of achieving this.
Any suggestions?
Thanks folks