Re: Combo box filtering

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Thank You allen.
Your code worked. I have one more favor to ask you. One of the combo
boxes has values "Current", "vacation""Discontinued". I would like my
form to open to show only the current students. So when i open the
continuous form, it should give me a filtered result of the current
students only.
Please help.
Allen Browne wrote:
Okay. You can ignore the examples for numbers, and dates, and just use the
code that has all those quotes for each of your cases.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"charleedongo" <charleedongo@xxxxxxxxxxx> wrote in message
news:1149091406.619476.305650@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thanks Allen,
I downloaded the sample. All my data type is Text.
The user has limited choice in each of the combo boxes to pick from.
It is for a School. In the first combo box, the values are Math,
Reading , or Math and reading.
The second combo box value is the classroom they are assigned to, which
is limited. Junoir, Middle and Higher.
The third combo box, the most important one, is the status of each
student. They are current, Vacation, Discontinued.
I looked at your sample and that is exactly what i wanted, but with no
date filters or number filters.
If you need more info of my table structure, let me know.
Thanks for your time
Allen Browne wrote:
So you want to place 3 unbound combo boxes in the Form Header, and a
command
button to apply the filter based on whatever combination of values the
user
entered?

You will need to use VBA code to create the string to use for the Filter
of
the form. The actual details will depend on the data type of these
fields.

If you can use VBA, and would like an exmaple to follow, download:
http://allenbrowne.com/unlinked/Search2000.zip
The small sample database shows how to build the Filter string from the
boxes that have values, and how to use the delimters for the different
data
types. Requires Access 2000 or later.


"charleedongo" <charleedongo@xxxxxxxxxxx> wrote in message
news:1149015121.793434.183700@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello Everyone,
Iam facing a problem when i try to filter a continuous form with
multiple combo boxes.
here is the situation. The form is based on a query. The query has
fields,
Last name
First Name
Subject
Status
Classroom

Subjects offered are Math and reading. Status is current, vacation,
discontinued.
Classroom is Junoir, Middle, Higher.
I would like to create such a filter where iam able to see all the math
students alone or reading students alone. These are dependent on the
status field. For example, i would like to see all math students who
are current in the Junior class room. I understand that this requires
three combo boxes which are interconnected.
Pls help me with the code by which i can achieve this.

.



Relevant Pages

  • Re: Combo box filtering
    ... Create a query using this table. ... Always open the form with a Filter, so the user can remove it. ... Access opens the code window. ... Open the form from a button, so it only shows current students ...
    (microsoft.public.access.queries)
  • Re: Local police are wary of civilians setting out to help catch cyber criminals.
    ... in a College environment. ... Students will use language ... I filter all kinds of spam. ... They can also filter against "language" and send up ...
    (alt.true-crime)
  • Re: Filter subform data from main form combo box(s)
    ... ATTENDANCE INNER JOIN STUDENTS ON ATTENDANCE.STUDENT_ID = STUDENTS.STUDENT_ID ... pages is a subform 'formadmintestpage1' which gets its' data from a query in ... the subform shows all of the students in attendance for that test. ... What I would like to do is be able to filter the students in the subform ...
    (microsoft.public.access.queries)
  • Its about time, scut back subjects to push Reading & Math
    ... Schools Cut Back Subjects to Push Reading and Math ... time spent on other subjects and, for some low-proficiency students, ...
    (soc.college.admissions)
  • Re: Filter Report via Button
    ... > I have a query, qryTardyDaily, that filters to show all the students tardy =date. ... > I have a form where the principals update the consequences of the student' tardies. ... Once they are updated, the principals would like to be able to print just the records that are equal to their grade, ie 10, 11, or 12. ... > Is there a way to place a button on a form that would filter the results of tblTardyDaily and just print those records equal the grade selected? ...
    (microsoft.public.access.reports)