Hello All,
I have a database with a main table tbl_Inventory. This table has fields:
Inventory_ID
Model
Maker
Category
Type
Quantity
I have a form for editing the quantity of broken or lost Inventory Items. This form consists of three combo boxes in which the selection adds criteria for a Query (qry_Inventory) so users can search records in a listbox by Maker, Category, and Type. Once they manipulate the combo boxes and select a record from the listbox, the Quantity shows up in a textbox.
The idea was to allow users to then change the Quantity value for the selected record and update the record by clicking a save button.
The first thing that I tried was to populate the listbox from the qry_Inventory, but the problem that I ran into is that the value in the textbox for Quantity cannot be changed or edited.
Then I thought that I should link the listbox directly to the tbl_Inventory and use the comboboxes as filters of some sort, but I cannot seem to figure out exactly how to apply these filters. On top of that, when I use the table rather than the query to populate my listbox, I am unable to select the records within the listbox in order to populate the textbox Quantity.
Am I on the right track? What am I doing wrong? Any advice would be greatly appreciated! And I am not so comfortable with VBA, so if there is anyway to do this using macros and/or expressions, I would be extremely happy...
I have a database with a main table tbl_Inventory. This table has fields:
Inventory_ID
Model
Maker
Category
Type
Quantity
I have a form for editing the quantity of broken or lost Inventory Items. This form consists of three combo boxes in which the selection adds criteria for a Query (qry_Inventory) so users can search records in a listbox by Maker, Category, and Type. Once they manipulate the combo boxes and select a record from the listbox, the Quantity shows up in a textbox.
The idea was to allow users to then change the Quantity value for the selected record and update the record by clicking a save button.
The first thing that I tried was to populate the listbox from the qry_Inventory, but the problem that I ran into is that the value in the textbox for Quantity cannot be changed or edited.
Then I thought that I should link the listbox directly to the tbl_Inventory and use the comboboxes as filters of some sort, but I cannot seem to figure out exactly how to apply these filters. On top of that, when I use the table rather than the query to populate my listbox, I am unable to select the records within the listbox in order to populate the textbox Quantity.
Am I on the right track? What am I doing wrong? Any advice would be greatly appreciated! And I am not so comfortable with VBA, so if there is anyway to do this using macros and/or expressions, I would be extremely happy...