C
ChrisW
Hi,
Apologies in advance if this should have been posted to a VBA group
instead.
I've got a relatively simple database, with all options available from
the Welcome form. There is just 1 other form. All of the controls on
the open form open this form using the DoCmd.OpenForm method, and
using the FilterName argument using queries in the database. However,
one of the controls on the welcome form is a combobox, on which one of
the queries is run (the selected option forms the WHERE clause). This
selects results from tables which have a many:many relationship, so I
then run another query selecting just the information I need from the
appropriate table (which is the table the results form is based on - I
have a subform on the results form to deal with the relationship).
When I open the results form using the combobox, it opens the results
form showing *all* the records, not just the ones relating to the
selected option.
I assume that Access doesn't do things logically, and opens the form,
then runs the query (but by that time it's obviously too late to limit
the records in the form!). How do I get round this problem?!
I hope this makes sense..!
Thanks in advance,
Chris
Apologies in advance if this should have been posted to a VBA group
instead.
I've got a relatively simple database, with all options available from
the Welcome form. There is just 1 other form. All of the controls on
the open form open this form using the DoCmd.OpenForm method, and
using the FilterName argument using queries in the database. However,
one of the controls on the welcome form is a combobox, on which one of
the queries is run (the selected option forms the WHERE clause). This
selects results from tables which have a many:many relationship, so I
then run another query selecting just the information I need from the
appropriate table (which is the table the results form is based on - I
have a subform on the results form to deal with the relationship).
When I open the results form using the combobox, it opens the results
form showing *all* the records, not just the ones relating to the
selected option.
I assume that Access doesn't do things logically, and opens the form,
then runs the query (but by that time it's obviously too late to limit
the records in the form!). How do I get round this problem?!
I hope this makes sense..!
Thanks in advance,
Chris