Hello, I have already searched the past threads that people have sent about using multiple combo boxes, but I cannot use the theory in the answers to these posts to sort out my situation.
For an A-Level project, I am building a database for stock management.In a customer order form, I have 2 drop downs (not sure whether to use combo or list boxes) amongst other items.
The first drop down lists all manufacturers of printer cartridges the company stores and is taken from one table (a field called M_Name) called tbl_make.
In another table (tbl_stock), there are a few fields, 2 of them are M_Name and the other is S_Name (this is the name of the printer cartridge), they are next to each other in the table.
The first drop down has all the values of M_Name listed. This is taken from tbl_make as there are no repeating makes. It can not be taken from tbl_stock because there will be repeating makes ie, there are lots of HP cartridge so this would be displayed in the drop down:
HP
HP
HP
Epson
Kyocera
etc...
The second drop down I have displays all the cartridges that are under the field S_Name in the tbl_stock table. My question is how can I have my drop downs so when I select HP for example (in the first box) all the HP printer cartridges are displayed.
I thought of one way of doing it would be that all the printer catridge manufacturers in the first drop down are queries that display the cartridges from tbl_stock in the next drop down box. Each query for example 'HP' would look at the two fields (M_Name and S_Name) in tbl_stock table and find all the M_Name values that were HP and so list all the cartridges that were next to the HP M_Name.
Sorry this was so long winded... I have no idea how to do this so any help appreciated really. thanks andi
For an A-Level project, I am building a database for stock management.In a customer order form, I have 2 drop downs (not sure whether to use combo or list boxes) amongst other items.
The first drop down lists all manufacturers of printer cartridges the company stores and is taken from one table (a field called M_Name) called tbl_make.
In another table (tbl_stock), there are a few fields, 2 of them are M_Name and the other is S_Name (this is the name of the printer cartridge), they are next to each other in the table.
The first drop down has all the values of M_Name listed. This is taken from tbl_make as there are no repeating makes. It can not be taken from tbl_stock because there will be repeating makes ie, there are lots of HP cartridge so this would be displayed in the drop down:
HP
HP
HP
Epson
Kyocera
etc...
The second drop down I have displays all the cartridges that are under the field S_Name in the tbl_stock table. My question is how can I have my drop downs so when I select HP for example (in the first box) all the HP printer cartridges are displayed.
I thought of one way of doing it would be that all the printer catridge manufacturers in the first drop down are queries that display the cartridges from tbl_stock in the next drop down box. Each query for example 'HP' would look at the two fields (M_Name and S_Name) in tbl_stock table and find all the M_Name values that were HP and so list all the cartridges that were next to the HP M_Name.
Sorry this was so long winded... I have no idea how to do this so any help appreciated really. thanks andi