- Messages
- 108
- Reaction score
- 112
- Points
- 43
AOA Sir you may remember me from a few days ago, when I asked you about the stock control system and you told me it would be good to make an update query to update stock values. My idea was that I will make a query and tell it to take the input for the update of current stock levels from a text box on the stock form and a small button below it saying update which simply runs that query.
View attachment 21183
I tried it and it does work, well about half. As when I enter a value to change the current stock remaining it changes the values of every records current stock. Is there any way I can restrict it to updating the value of only the record being viewed in the form?
View attachment 21184
Thank You Sir.
Danish Farid.
Danish the problem with the query is it should update the only one particular transaction not all entries
open the form from where you wanna fetch the id
go into the query design mode
under ID right click in criteria and go to build menu and select expression builder
in expression builder like this example of library management project enter a code to that id which should be loaded from form
[Forms]![student ENTRY FORM]![issue subform].[Form]![book issue id]
now while running it from form it will get the id and update the single value rather then many
with out teacher its hard to understand these type of work. hope it work for you