Fair enough, I'm sorry. I have a user form it has total 8 comboboxes.
All of which have either a value list or a table of selections
attached to it. The form is 100% modeled after Allen Brown's Search
Sample database
http://www.allenbrowne.com/ser-62.html
You can select a selection in one combobox or two or all and when you
click the filter button, it filters out all the information and gives
you just what you selected above. I copied all of his code and put my
information in it to make the filter work. And it does. Since all the
cbox's work properly I want to take some of the combo boxes to another
level.
Currently with no modifications from this post I can select cboxBranch
and select a branch # 8103 and run filter and all records with that
branch 8103 will pop up below. If I reset the filter and start over I
can select cboxVendor only; if I use vendor # 123456 then all branches
with #123456 attached to it will come up. This works fine.
cboxbranch has a table that lists just numerical branch #'s and branch
names. i.e. 8103, Denver Bread; this is rowsource
cboxvendor has a table that lists just numerical vendor # and vendor
names i.e 123456, Tina's Bakery; this is rowsource
Like in Allen brown's example you can click one cbox to all cbox's and
run the filter, some could be null and the filter would still run.
My question is IF I choose cbox branch first i.e. 8103 and run filter
all records for 8103 come up. OK now if I go to cboxvendor now with
8103 records still filtered, I would like the vendors in cboxvendors
not to show the entire list but to know that 8103 in cboxbranch is
choosen and only give me the vendors that 8103 uses to choose from. If
I reset the filter to stratch, then I would like the cboxvendor to
list all vendors for all branches as default, because sometimes I want
to see all brances the vendors supply us. This help at all?
So, in summary, the cboxvendors I want to default to master vendor
list, if a branch is selected first before a person goes to choose
vendor then in cboxvendor a partial vendor list will come up only for
that branch selected.
Ryan
No.
I think Doug and I are both struggling to understand what
you want to happen in what user scenarios.
Doug has provided nearly the same responses I would have and
I do not want to take over this thread. Instead of making
everyone guess what situations you want something to happen,
you should provide Doug with detailed explanations of the
several different sequwnces of user actions and how you want
the combo boxes to behave in each scenario.
--
Marsh
MVP [MS Access]
I appoligize for not stating my questions with clarity, I am
inexperienced with VBA as you can tell, and Access for that matter. Do
you understand what I would like from reading my questions and posts
from above?
- Show quoted text -