That was it. The function was being called by the report. I had this in
one of the header text items: =fncStudentName([student_id]).
The second time I ran the report I was adding the current day, and so there
were no records for the report. I'll add a check.
The truly weird thing, though, was that even when I hovered over ai_student
with the mouse in the de *** , I would get that "no current record" error.
You'd think the function would just treat it as a null. How did it know why
the value wasn't good???
Thanks for helping me see the obvious.