<!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 6.00.2722.900" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=830302023-08102003><FONT face=Arial color=#0000ff size=2>Just a
thought, on the OnFormat of each subreport, go and 'add' the fields to that
other textbox, that way, if there is no data for a subreport, there won't be an
OnFormat event.</FONT></SPAN></DIV>
<DIV><SPAN class=830302023-08102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=830302023-08102003><FONT face=Arial color=#0000ff
size=2>Drew</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Nancy Lytle
[mailto:LYTLEN@peoplepc.com]<BR><B>Sent:</B> Wednesday, October 08, 2003 6:01
PM<BR><B>To:</B> AccessD@databaseadvisors.com<BR><B>Subject:</B> [AccessD]
What to do when subreport used as textbox source has no
data<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV>I have a main report with 3 subreports, all are related by the
field<BR>ProgramCode. There is a record in three of the reports (Main
and 2<BR>subreports) for every ProgramCode. I also use the values in the
subreports<BR>to populate a text box - txtAB = Sub1.field + sub2.field-
sub3.field -<BR>sub3.field. This works fine except for the case where
the ProgramCode has<BR>no record in Subreport3, then that subreport doesn't
show and the textbox is<BR>filled with error#. How do I get the textbox
to use txtAB = Sub1.field +<BR>sub2.field where there is no sub report for the
linked field.<BR><BR>Hope I explained this okay.<BR>TIA<BR>Nancy
L</DIV></FONT></DIV><FONT face=Arial size=2>
<DIV><BR><A
href="mailto:N_Lytle@terpalum.umd.edu">N_Lytle@terpalum.umd.edu</A><BR>240-274-0069</DIV>
<DIV> </DIV>
<DIV><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG
anti-virus system (<A
href="http://www.grisoft.com">http://www.grisoft.com</A>).<BR>Version: 6.0.524
/ Virus Database: 321 - Release Date:
10/6/2003</FONT></DIV></BLOCKQUOTE></BODY></HTML>