I have a report that is based on a query. The query gives names from one table and many entries for that name from another. I have designed a report so that the name is in the header of the name group and the entries for the name in the detail section.
Sometimes, the name has no entries for it, but my form still prints the headings for the entries. If I use code to hide the entry fields when empty, the report still leaves a gap where a single entry would be. Is there a way of producing a report that only prints entries when available and prints the next name immediately after (no gap) when there isn't?

Sometimes, the name has no entries for it, but my form still prints the headings for the entries. If I use code to hide the entry fields when empty, the report still leaves a gap where a single entry would be. Is there a way of producing a report that only prints entries when available and prints the next name immediately after (no gap) when there isn't?