A
Adam
You may have seen my posts before but here we go again:
Ive got 13 combo's ( rig name, owner, world region, rig heading, etc.) and
one table ( MODU ) on one form ( MODU-Form ).
Still can go straight through all them, in order, having each combo filter
the combo box after it ( go from rig name to owner to world region, etc and
it will filter and return the correct results ).
I am still looking for a way to be able to go in any order through the combo
boxes, not just in order 1-13.
Currently i only have a query in each combo rowsource allowing me to go in
order, but the closest visual basic code i have seen to use in the forum
would look like this (assuming i have only the first 4 combo boxes)
Private Sub Rig_Name_AfterUpdate()
If IsNull(me.activecontrol) then
[owner].rowsource = "SELECT modu.rig_name, modu.owner, modu.world_region,
modu.rig_heading" &_
"FROM modu" &_
"WHERE modu.rig_name = '"&[forms]![modu-form]![rig name]&"' ;"
ELSE
[owner].rowsource = "SELECT modu.rig_name, modu.owner, modu.world_region,
modu.rig_heading FROM modu;"
END IF
END SUB
Thanks for any more advice, and sorry to be reposting!
Ive got 13 combo's ( rig name, owner, world region, rig heading, etc.) and
one table ( MODU ) on one form ( MODU-Form ).
Still can go straight through all them, in order, having each combo filter
the combo box after it ( go from rig name to owner to world region, etc and
it will filter and return the correct results ).
I am still looking for a way to be able to go in any order through the combo
boxes, not just in order 1-13.
Currently i only have a query in each combo rowsource allowing me to go in
order, but the closest visual basic code i have seen to use in the forum
would look like this (assuming i have only the first 4 combo boxes)
Private Sub Rig_Name_AfterUpdate()
If IsNull(me.activecontrol) then
[owner].rowsource = "SELECT modu.rig_name, modu.owner, modu.world_region,
modu.rig_heading" &_
"FROM modu" &_
"WHERE modu.rig_name = '"&[forms]![modu-form]![rig name]&"' ;"
ELSE
[owner].rowsource = "SELECT modu.rig_name, modu.owner, modu.world_region,
modu.rig_heading FROM modu;"
END IF
END SUB
Thanks for any more advice, and sorry to be reposting!