M
Malekius
I've got
2 tables: tblMajor and tblClass;
and a form called frmPromt with
two combo boxes: cboClass and cboValue
and a Query1 which binds them all
tblClass has two fields
ClassID (primary key)
ClassName
tblMajor has 5 fields
NumberID (primary key)
ClassID (Foreign Key)
ClassName
ItemValue
ItemName
cboValue is triggered by cboClass
Afterupdate event of cboClass sets the rowsource of cboValue.
so cboValue selects values Where tblMajor.ClassID = " & Me.cboClass
(at the first attempt I did this for the ItemNames and It worked. A list box
bound to Query1 and combo boxes did trick. But in time tblMajor got bigger
with ItemNames which have same names but different Values. So now I have to
select Values rather ItemNames in the Second combo box.)
ItemValues are numbers varying between -20 to 20 but this number interval
changes with respect to Selected Class
For Example
Let say Class A has 4 Items in it
ItemA with value of 0,25
ItemA with value of 0,5
ItemB with value of 0,25
ItemC with value of 0,75
If I select Class A cboValue will probably (drop-down) list all the 4 Values
(which I don't want it to happen)
Is it possible to filter out the same values so drop-down list of the
cboValue only
list as
0,25
0,50
0,75
2 tables: tblMajor and tblClass;
and a form called frmPromt with
two combo boxes: cboClass and cboValue
and a Query1 which binds them all
tblClass has two fields
ClassID (primary key)
ClassName
tblMajor has 5 fields
NumberID (primary key)
ClassID (Foreign Key)
ClassName
ItemValue
ItemName
cboValue is triggered by cboClass
Afterupdate event of cboClass sets the rowsource of cboValue.
so cboValue selects values Where tblMajor.ClassID = " & Me.cboClass
(at the first attempt I did this for the ItemNames and It worked. A list box
bound to Query1 and combo boxes did trick. But in time tblMajor got bigger
with ItemNames which have same names but different Values. So now I have to
select Values rather ItemNames in the Second combo box.)
ItemValues are numbers varying between -20 to 20 but this number interval
changes with respect to Selected Class
For Example
Let say Class A has 4 Items in it
ItemA with value of 0,25
ItemA with value of 0,5
ItemB with value of 0,25
ItemC with value of 0,75
If I select Class A cboValue will probably (drop-down) list all the 4 Values
(which I don't want it to happen)
Is it possible to filter out the same values so drop-down list of the
cboValue only
list as
0,25
0,50
0,75