Ok,
I currently have a system which allows hiring of items. When an item is selected this is displayed within a listbox and saved within a table. If i was to press remove then this would clear the listbox, delete from the table and update the hired item within the item table.
Currenttly say i placed an hire order for 10 items, these would all display within a listbox, then if the remove button was to be pressed, all the items would be deleted from the table hireline. This works fine, but at the same time i want to update the stock within the item table. Currently the first item within the listbox updates within the item table but the remanining items do not update.
The code displayed is the code that i am using. Hope this is more clear..
- Set rsitemline= currentdatabase.OpenRecordset("select * from itemhire Where itemno =" & Forms!frmitemhire!txtorderno)
-
-
Set rsirtem= currentdatabase.OpenRecordset("tblitem")
-
-
rsirtem.FindFirst ("[itemno]='" & rsitemline("itemno") & "'")