Al,
I guess I didn't explain the problem well.
I have code in the before and after sections of the block code. It is necessary to properly format the report and to assign data from queries to the controls in the report.
This is the code that is showing errors.
The queries are project queries, not report queries.
I hope this explains it better.