G
Guest
I have a report that lists all attendance records for a particular student
upon his or her departure from our program.
I would like to program the report *not* to open from the custom form if the
underlying query has no records.
I have tried using If statements to check for a null recordset on the query
and for a "#Error" value for a report textbox control that otherwise prints
the selected student's name at the top of the form when there are attendance
records found.
Either the report continues to open with the error showing, or I get an
"Object required" error but don't know what is causing it. The code does not
break for me to see what line in the sub routine is causing the error.
Thank you in advance for any suggestions.
upon his or her departure from our program.
I would like to program the report *not* to open from the custom form if the
underlying query has no records.
I have tried using If statements to check for a null recordset on the query
and for a "#Error" value for a report textbox control that otherwise prints
the selected student's name at the top of the form when there are attendance
records found.
Either the report continues to open with the error showing, or I get an
"Object required" error but don't know what is causing it. The code does not
break for me to see what line in the sub routine is causing the error.
Thank you in advance for any suggestions.