K
Karl Krelove
I have a table that contains Student ID numbers and Yes/No fields that
indicate whether or not each attended each of several class meetings. So
there's an ID field and 6 class fields (Class1, Class2, etc.) - probably more
later when I've figured out how to do this. I want to show in a form each of
these fields for each student (along with names and some other information
from another table related to this through the ID numbers). At the end of
each row I want to show how many classes each student attended. At the bottom
of each column I want to show how many students attended each class. I've
built a query simply to base the form on. When I try to use Count() at the
bottom of the columns, I get the total number of records, since each has a
Yes or No property (I assume Yes/No cannot be NULL, which is apparently the
only thing Count() won't count). I haven't found a built in function that
seems to be able to add the Yes fields across.
Am I missing a simple way to do this? I'm starting to work with VBA. I can
loop through each field in each record, compare the value to "Yes" and
increment a counter each time one is found? I guess I could do the same for
the column counts as well. It just seems like a cumbersome way to do it. Are
there simpler solutions?
TIA
Karl Krelove
indicate whether or not each attended each of several class meetings. So
there's an ID field and 6 class fields (Class1, Class2, etc.) - probably more
later when I've figured out how to do this. I want to show in a form each of
these fields for each student (along with names and some other information
from another table related to this through the ID numbers). At the end of
each row I want to show how many classes each student attended. At the bottom
of each column I want to show how many students attended each class. I've
built a query simply to base the form on. When I try to use Count() at the
bottom of the columns, I get the total number of records, since each has a
Yes or No property (I assume Yes/No cannot be NULL, which is apparently the
only thing Count() won't count). I haven't found a built in function that
seems to be able to add the Yes fields across.
Am I missing a simple way to do this? I'm starting to work with VBA. I can
loop through each field in each record, compare the value to "Yes" and
increment a counter each time one is found? I guess I could do the same for
the column counts as well. It just seems like a cumbersome way to do it. Are
there simpler solutions?
TIA
Karl Krelove