steve schaple
Form the afterupdate of the parent combo box I can change the rowsource and
with the filter
But I need to alter the first query before I can call the second
Number 1
Child16!ProceduresName.RowSource = "SELECT
[procedurespersamplebyclientsub].[ProceduresId],
[procedurespersamplebyclientsub].[ProceduresName] FROM
[procedurespersamplebyclientsub] WHERE
[procedurespersamplebyclientsub].[clientID] = -1606758480;"
number2
Child16!ProceduresName.RowSource = "SELECT
[procedurespersamplebyclient].[ProceduresId],
[procedurespersamplebyclient].[ProceduresName] FROM
[procedurespersamplebyclient];"
do I need to use a third combo box just to send the filter to the first
query and hide so the usr does not see it
Steve Schapel said:
Gregory,
If I understand you correctly, you can refer to the combobox on the
parent form in the criteria of the applicable field in your query, using
syntax such as [Forms]![NameOfYourParentForm]![NameOfCombobox]
--
Steve Schapel, Microsoft Access MVP
GREGORY said:
I got the query working by putting my [procedures] [sample] [case] [client]
tables in a query and count procedur id
this query into a second query and adding second procedures table, If
filter the first query by client name I get the resault I was looking
for.How do I pass the fiter to the first query. first query name is
[procedurespersamplebyclentsub] the final is [procedurespersamplebyclent] I
can use the query in a combobox but I can't send the filter to the query
whitch is set by another combo box in a parent form.