C
CollegeTry
This is for a simple database I'm creating at home for my daughter to help
her in her college search.
I have 5 columns in the DB: College Name, and then four columns listing
majors - Animation, Film, Photo, and Video. The College Name column lists
the college names. The major columns have a 1 if the college has that major
and a blank if it does not.
I want to set up a Parameter Query so my daughter can select any combination
of majors, and see which colleges have that combination. For example, if she
wants to see those colleges that have Film, Photo, and Video, I want her to
be able to select those three majors and have Access come back with a list of
colleges that have those three majors only.
I can create a parameter query that selects the colleges that have all four
majors using design view. Here's the SQL statement:
SELECT All2.College, All2.Animation, All2.Film, All2.Photo, All2.Video
FROM All2
WHERE (((All2.Animation)=[Enter 1 for Animation]) AND ((All2.Film)=[Enter 1
for Film]) AND ((All2.Photo)=[Enter 1 for Photo]) AND ((All2.Video)=[Enter 1
for Video]))
But, try as I might, I can't figure out how to create a query statement that
selects any combination of majors.
So, is there an easy way to do this?
her in her college search.
I have 5 columns in the DB: College Name, and then four columns listing
majors - Animation, Film, Photo, and Video. The College Name column lists
the college names. The major columns have a 1 if the college has that major
and a blank if it does not.
I want to set up a Parameter Query so my daughter can select any combination
of majors, and see which colleges have that combination. For example, if she
wants to see those colleges that have Film, Photo, and Video, I want her to
be able to select those three majors and have Access come back with a list of
colleges that have those three majors only.
I can create a parameter query that selects the colleges that have all four
majors using design view. Here's the SQL statement:
SELECT All2.College, All2.Animation, All2.Film, All2.Photo, All2.Video
FROM All2
WHERE (((All2.Animation)=[Enter 1 for Animation]) AND ((All2.Film)=[Enter 1
for Film]) AND ((All2.Photo)=[Enter 1 for Photo]) AND ((All2.Video)=[Enter 1
for Video]))
But, try as I might, I can't figure out how to create a query statement that
selects any combination of majors.
So, is there an easy way to do this?