Count non-blank fields in form

I

Ian

I have a form with 7 date fields representing the date a
participant attends a course. I would like to count how
many courses the participant attends by counting how many
date fields contain a value. Am I going about this the
right way?

Thanks
 
M

Mike Painter

Ian said:
I have a form with 7 date fields representing the date a
participant attends a course. I would like to count how
many courses the participant attends by counting how many
date fields contain a value. Am I going about this the
right way?

No. There should be a separate table that contains the student ID, The
course ID and the date.
That makes it trivial to count the number and allows a student to take more
than seven courses.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top