(E-Mail Removed) wrote:
>When I choose Across and Down for data on a subreport, the subform
>prints out correctly on the main report. It makes it four columns as
>I wanted.
>
>But I really want to use Down and Across (not Across and Down). But
>when I use that option, the main report does not columnate it at all,
>it just prints it out as one column.
>
>This is annoying. What am I doing wrong?
>
>When I preview the subreport (not the main report), it does columnate
>it correctly with the Down and Across option. But when I go to the
>main report and do a preview, it makes it the one column.
>
>It happens whether I choose two or three columns and no matter how
>wide the control on the main form is for the sub report.
>
>I don't get it.
>
>Simply changing from Down and Across to Across and Down shouldn't make
>you change anything, as far as I know.
The problem is that the main report is "in charge" of page
related actions so the subreport has no idea when it should
move to the next column. Similarly, a subreport's Page
Header/Footer sections are not used and its Page event will
not be triggered. Regardless of how much sense it makes, it
has always been this way.
Your only other options are to set the subreport control's
Height at design time and set its CanGrow property to No.
Obviously this idea is useless if you can't tell a priori
approximately how many records will be in the subreport.
Or, you can try to fudge the subreport's record source
records so that they are sorted in such a way that Across
then Down looks as if it were down then across. This won't
really do what I think you want if the subreport is split
across multiple pages.
--
Marsh
MVP [MS Access]