<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4134.600" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2>Have I forgotten some very basic 
thing - I just want a subreport to stay together and I can't seem to achieve it 
simply. (the subreport is small and in itself could never be > 15 
lines).</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I have written a function which will 
tell me whether I want the subreport to go to a new page or not and based on 
that I want the subreport to stay or force a new page.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>eg.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>If CalcNewPageNeeded() = true 
then</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>    'do something here 
to force subreport to new page</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Endif</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>I have also tried the 'on format' 
event of the subreport's header section, eg.</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>if CalcNewPageNeeded() = true 
</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>     
Me.Section(1).ForceNewPage = 1</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Endif</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>but with no luck. </FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>What am I missing? TIA</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>Kath</FONT></DIV></BODY></HTML>