G
Guest
I currently have a form set up which includes various combo boxes and one
text box which a query uses as criteria to run. All of my combo boxes are
working and my text box works provided there is only one criteria listed.
For example, my text box is so a user can enter branch numbers for which they
would like to view data. In the associated query, I have the criteria field
set to Like [forms]![FORMNAME]![FIELDNAME].
The issue I am having is that even if there is more than one branch listed,
like 7575 and 7576, the query will run for the first branch number listed but
will not include data for two. I've tried it several ways by entering "7575,
7576", "7575 or 7576", and "7575 7576". All of these variations return the
same data for the first branch only.
Is there a way to enter several branches seperated by commas so that Access
will pull data for each individual branch without having to run an append
query after each branch is run.
The one thing that confuses me greatly is that I can enter "Like 7575 or
Like 7576" in the criteria field instead of pointing the criteria field to
pull from the form and the query runs perfectly. It just won't pull the data
if I point the criteria field at the form to pull the data a user has entered.
text box which a query uses as criteria to run. All of my combo boxes are
working and my text box works provided there is only one criteria listed.
For example, my text box is so a user can enter branch numbers for which they
would like to view data. In the associated query, I have the criteria field
set to Like [forms]![FORMNAME]![FIELDNAME].
The issue I am having is that even if there is more than one branch listed,
like 7575 and 7576, the query will run for the first branch number listed but
will not include data for two. I've tried it several ways by entering "7575,
7576", "7575 or 7576", and "7575 7576". All of these variations return the
same data for the first branch only.
Is there a way to enter several branches seperated by commas so that Access
will pull data for each individual branch without having to run an append
query after each branch is run.
The one thing that confuses me greatly is that I can enter "Like 7575 or
Like 7576" in the criteria field instead of pointing the criteria field to
pull from the form and the query runs perfectly. It just won't pull the data
if I point the criteria field at the form to pull the data a user has entered.