P
Paige
I have a db where I track student fees for sports,
activities, and such. Each student has four fields for
sport codes, as that is the highest number a student
could theoretically participate in. (There are 18
possible sports to choose from. They are stored in
another table along with their description, fee amount,
etc. I am only storing the code for each student.)
In my query, the user is prompted for the sport code that
they want to return students for. This query searches
all four sport fields for the student. It always returns
the correct information, so it works just fine. However
I do not want to return information for other sport codes
that are stored. (Example: 311 is the code for
football. Student A has 311 stored in Sport1. Student B
has 311 stored in Sport2 because they are also in another
sport coded 315, which was stored first in Sport1.) What
I would like to have happen is to only return fields that
contain the matching criteria. It is not possible for a
code to appear in more than one field, so that is not an
issue.
I know this should be a very simple process, but my
working knowledge in this aspect of Access simply isn't
up to snuff. Any ideas would be appreciated.
Thanks.
-Paige
activities, and such. Each student has four fields for
sport codes, as that is the highest number a student
could theoretically participate in. (There are 18
possible sports to choose from. They are stored in
another table along with their description, fee amount,
etc. I am only storing the code for each student.)
In my query, the user is prompted for the sport code that
they want to return students for. This query searches
all four sport fields for the student. It always returns
the correct information, so it works just fine. However
I do not want to return information for other sport codes
that are stored. (Example: 311 is the code for
football. Student A has 311 stored in Sport1. Student B
has 311 stored in Sport2 because they are also in another
sport coded 315, which was stored first in Sport1.) What
I would like to have happen is to only return fields that
contain the matching criteria. It is not possible for a
code to appear in more than one field, so that is not an
issue.
I know this should be a very simple process, but my
working knowledge in this aspect of Access simply isn't
up to snuff. Any ideas would be appreciated.
Thanks.
-Paige