Dynamic Sub report

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a report with 2 subreports. SOmetimes the first subreport is excluded
from the report. When this occurs, i would like to move the second subreport
up the page so there is no gap between my header detail on the main report
and my sub2. Does anyone know how to dynamically move a subreport?
I see a "Move" method is available, but I don't know the syntax for it.
Thank you kindly anyone who can help.
Cheers
Nick Lindner
 
My apologies Duane,
The first subreport is hidden (visible = false) and I want the second
subreport to move up over the top of the now hidden sub report...close the
gap.
The first report still contains data, so I don't think the shrink option
will work for me in this situation.
Thanks
Nick Lindner
 
You "don't think the shrink option will work". Did you try it? I am not sure
if it will work or not but at least you should try it.
 
I have now tried the shrink option and it doesn't work. I was hoping to use
the TOP and LEFT properties, which I have used in the past for individual
controls, but they don't seem to work for the complete sub report. The other
method that caught my eye was MOVE, but I can't get that to work either. Any
other suggestions? ...and I will make sure I try them before responding next
time.
CHeers
Nick LIndner
 
You might be able to get the count of the records from the subreport and use
it in the main report to set the Left property of you other controls. If you
tried this and it didn't work, please tell us what happened.
 
Back
Top