L
Len B
I have tblEquip including fields EquipNum, ProdCode, Location etc.
I have tblProdCode with some sample data as follows (PK omitted here)-
ProdCode|ProdType |Class1|Class2 |Class3 |Class4 |
--------|---------|------|---------|----------|--------|
82111 |Furniture|Beds |Electric |Hi-lo tilt|Invacare|
82120 |Furniture|Beds |Electric |Hi-lo | |
82210 |Furniture|Beds |Hydraulic|Hi-lo tilt| |
82220 |Furniture|Beds |Hydraulic|Hi-lo | |
82300 |Furniture|Beds |Mobile | | |
81110 |Furniture|Cots |Hospital |High sides| |
81120 |Furniture|Cots |Hospital |Low sides | |
--------------------------------------------------------
On a form, RecordSource is tblEquip, I have a stack of 5 unbound combos.
ProdType whose RecordSource is a qry selecting all distinct ProdTypes
Class1 whose RS qry selects distinct Class1s matching ProdType choice.
::
Class4 whose RS qry selects distinct Class4s to match cboClass3 choice.
The user can select (say) Furniture then Cots then Hospital ... and then
81110 is plugged into the form's txtProdCode.
Q1 Is there a way that I can populate the combos in OnCurrent?
Or should I superimpose some matching text boxes and populate those,
alternately making combos and text boxes visible as appropriate?
Q2 Should I extend the WHERE clauses for the Classes to limit rows to
data matching ALL preceding choices or maybe 2 preceding choices.
TIA
I have tblProdCode with some sample data as follows (PK omitted here)-
ProdCode|ProdType |Class1|Class2 |Class3 |Class4 |
--------|---------|------|---------|----------|--------|
82111 |Furniture|Beds |Electric |Hi-lo tilt|Invacare|
82120 |Furniture|Beds |Electric |Hi-lo | |
82210 |Furniture|Beds |Hydraulic|Hi-lo tilt| |
82220 |Furniture|Beds |Hydraulic|Hi-lo | |
82300 |Furniture|Beds |Mobile | | |
81110 |Furniture|Cots |Hospital |High sides| |
81120 |Furniture|Cots |Hospital |Low sides | |
--------------------------------------------------------
On a form, RecordSource is tblEquip, I have a stack of 5 unbound combos.
ProdType whose RecordSource is a qry selecting all distinct ProdTypes
Class1 whose RS qry selects distinct Class1s matching ProdType choice.
::
Class4 whose RS qry selects distinct Class4s to match cboClass3 choice.
The user can select (say) Furniture then Cots then Hospital ... and then
81110 is plugged into the form's txtProdCode.
Q1 Is there a way that I can populate the combos in OnCurrent?
Or should I superimpose some matching text boxes and populate those,
alternately making combos and text boxes visible as appropriate?
Q2 Should I extend the WHERE clauses for the Classes to limit rows to
data matching ALL preceding choices or maybe 2 preceding choices.
TIA