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!
Also:
I am trying to filter the combo lists essentially. The table has 13 columns,
all different categories of offshore rigs which are what all my combos
represent. The form is needed so someone who has just the project number for
instance can go to the combo box for project number, select one, and then the
other combos will only have the proper info for that project #. So the end
result of my form is just having all the combos have information relating to
one project number.
I do realize it doesnt make much sense to others why I need a form to allow
someone to choose out of 13 boxes to narrow a search, but it is what im
trying.
Im not great with visual basic, but in plain terms it seems like i need a
code that allows every box to have all the values for it if every box is
blank. Once a box has a value selected the code would filter the other 12,
and so on. To me it seems like endless codes would have to be written for
every possible direction through the boxes, but im still hoping someone has
an ace up their sleeve to share.
Hope this helps a little, its complicated to me even.
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!
Also:
I am trying to filter the combo lists essentially. The table has 13 columns,
all different categories of offshore rigs which are what all my combos
represent. The form is needed so someone who has just the project number for
instance can go to the combo box for project number, select one, and then the
other combos will only have the proper info for that project #. So the end
result of my form is just having all the combos have information relating to
one project number.
I do realize it doesnt make much sense to others why I need a form to allow
someone to choose out of 13 boxes to narrow a search, but it is what im
trying.
Im not great with visual basic, but in plain terms it seems like i need a
code that allows every box to have all the values for it if every box is
blank. Once a box has a value selected the code would filter the other 12,
and so on. To me it seems like endless codes would have to be written for
every possible direction through the boxes, but im still hoping someone has
an ace up their sleeve to share.
Hope this helps a little, its complicated to me even.