D
Dina
Have you tried to requery from the first control - here-----Original Message-----
I am trying to limit a combo box's options on a form based
on a earlier value entered on that form. I have the second
combo box operational without the SQL statement and with
the following SQL statement:
SELECT tbl_subcategories.categories,
tbl_subcategories.main_category FROM tbl_subcategories
WHERE(((tbl_subcategories.main_category)=value)) ORDER BY
tbl_subcategories.categories;
where in place of value I define a literal condition such
as "Cooperation/Coordination." However, I would like for
that WHERE clause to take the value from an earlier combo
box on the form and input it into the clause so that it
filters for the selected category. But when I write:
[frm_filing].[Combo14]
in place of value the form prompts for input (probably
because we cannot query a form's value). Equally, when I
write:
[tbl_filing].[main_category]
in place of value the form prompts for input (probably
because a specific record is not selected). This being the
case, how can I perform the task which I wish to
accomplish? i.e. how can I limit my Sub Categories to
those which are only applicable to the main category
selected.
Can anyone help?
.
is an example I used to limit the choices in a combo from
another combo selection -
Private Sub Combo6_AfterUpdate()
Me!ModificationID.Requery
End Sub
Where Combo6 is the first selection and ModificationID is
the "filter" for the new query for the second combobox.
I hope this helps
Dina