hi Duane - your solution to this problem worked perfectly. But, for my own learning, I have a question.
You used the following SQL...
SELECT ID2, CountConsec("tblTeach314b","ID2",[ID2],"Val") AS CountIt
FROM tblTeach314b
GROUP BY ID2, CountConsec("tblTeach314b","ID2",[ID2],"Val");
You used...