Despite an extensive search of the forums I cannot find a solution to my problem so I apologise in advance if this has been asked and answered (if it has can you point the way). I am having great problems displaying values in a ListBox depending on what value the user chooses from a ComboBox. I would be grateful for any help.
I have two tables as follows:
Table 1 = tblStock
Fields: Stock_ID; Stock_Description
Table 2 = tblSizes
Fields: Size_ID; Size; Qty; Stock_ID
(NB The stock is work garments and their sizes and quantities)
I would like to have a ComboBox that displays the stock (Trousers,Shirts etc) and just below that a ListBox that displays the Sizes and Quantities associated with a piece of stock.
Example:
If the user chooses Trousers from the dropdown ComboBox only those sizes (and quantities) associated with the stock item chosen would be displayed in the ListBox below.
Ala...
Trousers
Size - Qty
36 - 3
40 - 10
:
etc
(depending on garment there can be up to 15 different sizes)
I have been trying this for ages and I am obviously making a fundamentally basic error but I can't figure out what that is.
I have managed to get a ComboBox to show only the stock Items so that the user can choose what they want. But, here lies the problem, the list box I placed displays ALL sizes and quantities for ALL stock items.
Regards
Herriot
I have two tables as follows:
Table 1 = tblStock
Fields: Stock_ID; Stock_Description
Table 2 = tblSizes
Fields: Size_ID; Size; Qty; Stock_ID
(NB The stock is work garments and their sizes and quantities)
I would like to have a ComboBox that displays the stock (Trousers,Shirts etc) and just below that a ListBox that displays the Sizes and Quantities associated with a piece of stock.
Example:
If the user chooses Trousers from the dropdown ComboBox only those sizes (and quantities) associated with the stock item chosen would be displayed in the ListBox below.
Ala...
Trousers
Size - Qty
36 - 3
40 - 10
:
etc
(depending on garment there can be up to 15 different sizes)
I have been trying this for ages and I am obviously making a fundamentally basic error but I can't figure out what that is.
I have managed to get a ComboBox to show only the stock Items so that the user can choose what they want. But, here lies the problem, the list box I placed displays ALL sizes and quantities for ALL stock items.
Regards
Herriot