Essentially I would like to use my current tool type combo box to control the options available in a second combo box, which will then contain sub types (I do not have this yet).
Currently, I have a tool log table, which is populated by my main form. There are several combo boxes, that reference other tables (each of which contain a single entry per recort). One of these is the tool type table (Type). This table simply contains the various tool types. The Tool_Log table and Type table structures are below:
Tool_Log
ToolID dbLong PrimaryKey Indexed
ManID dbText
Serial dbText
TypeID dbText
Size dbText
Description dbText
Set dbText
Year dbText
RRP dbCurrency
PurID dbText
Date dbDate
LocID dbText
ImagePath dbText
ImagePath2 dbText
TechDoc dbText
TechDocPath dbMemo
TechDoc2 dbText
TechDocPath2 dbMemo
TechDoc3 dbText
TechDocPath3 dbMemo
Type
Type dbText PrimaryKey Indexed
So currently if I select "wrench", it includes adjustable wrenches, pipe wrenches, box wrenches, combination wrenches etc. What I wold like to do is select "Wrench" from the Type combo box (cmbType) and then based on this selection have only the wrench sub types appear in the Sub Type combo box (cmbSubType [not yet present]).
I played with the code posted in the post but I was unsure as to whether the Sub Type would be in its own table or in the Type table.
Please let me know if I have not made this clear or I need to provide additional information.
Thanks,
Darren
Currently, I have a tool log table, which is populated by my main form. There are several combo boxes, that reference other tables (each of which contain a single entry per recort). One of these is the tool type table (Type). This table simply contains the various tool types. The Tool_Log table and Type table structures are below:
Tool_Log
ToolID dbLong PrimaryKey Indexed
ManID dbText
Serial dbText
TypeID dbText
Size dbText
Description dbText
Set dbText
Year dbText
RRP dbCurrency
PurID dbText
Date dbDate
LocID dbText
ImagePath dbText
ImagePath2 dbText
TechDoc dbText
TechDocPath dbMemo
TechDoc2 dbText
TechDocPath2 dbMemo
TechDoc3 dbText
TechDocPath3 dbMemo
Type
Type dbText PrimaryKey Indexed
So currently if I select "wrench", it includes adjustable wrenches, pipe wrenches, box wrenches, combination wrenches etc. What I wold like to do is select "Wrench" from the Type combo box (cmbType) and then based on this selection have only the wrench sub types appear in the Sub Type combo box (cmbSubType [not yet present]).
I played with the code posted in the post but I was unsure as to whether the Sub Type would be in its own table or in the Type table.
Please let me know if I have not made this clear or I need to provide additional information.
Thanks,
Darren