You've likely already looked at this, but have you included a >7 in your sumfield during your find? That seems like the most obvious appoach...constrain your found set.
Yes I did that and it comes back with "no records match this criteria".
Please describe your tables and fields in more detail. Do you also have a Students table? How are the sum_daycodes and Total_records fields defined?