<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : ReportControl SUBSUM</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : ReportControl SUBSUM]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 14:28:19 +0000</pubDate>
  <lastBuildDate>Sat, 07 Aug 2010 04:40:18 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=17051</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[ReportControl SUBSUM :   axdoverm wrote:Hey Guys,  If...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59675&amp;title=reportcontrol-subsum#59675</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3701">Aaron</a><br /><strong>Subject:</strong> 17051<br /><strong>Posted:</strong> 07 August 2010 at 4:40am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by axdoverm" alt="Originally posted by axdoverm" style="vertical-align: text-bottom;" /> <strong>axdoverm wrote:</strong><br /><br />Hey Guys,<BR><DIV>&nbsp;</DIV><DIV>&#091;...&#093;<BR>If i change the SUMSUB to (F2:F3) i don't get any results, what i'm missing ?? ... i cant figure is out! ... so please HELP ME!<BR>&#091;...&#093;</DIV><DIV><BR></td></tr></table> </DIV><DIV>&nbsp;</DIV><DIV><FONT size=2>Hi,</FONT></DIV><DIV><FONT size=2>&nbsp;<BR>You need <strong>SUMSUB(R*C5:R*C6) </strong>for calculating <strong>"Omzet"</strong></FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><EM><FONT size=2>From:</FONT></EM></DIV><DIV><FONT size=2>R&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; <strong><U>R</U></strong>ow</FONT></DIV><DIV><FONT size=2>*&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; Rownumber (* means all rows)</FONT></DIV><DIV><FONT size=2>C&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; <strong><U>C</U></strong>olumn</FONT></DIV><DIV><FONT size=2>5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp; Column number (=ItemIndex)</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV><EM><FONT size=2>To:</FONT></EM></DIV><DIV><DIV><FONT size=2>R&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; <strong><U>R</U></strong>ow</FONT></DIV><DIV><FONT size=2>*&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; Rownumber (* means all rows)</FONT></DIV><DIV><FONT size=2>C&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp;&nbsp;&nbsp; <strong><U>C</U></strong>olumn</FONT></DIV><DIV><FONT size=2>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=&nbsp;&nbsp;&nbsp;&nbsp; Column number (=ItemIndex)</FONT></DIV><DIV><FONT size=2>&nbsp;</FONT></DIV><DIV>&nbsp;</DIV></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sat, 07 Aug 2010 04:40:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59675&amp;title=reportcontrol-subsum#59675</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl SUBSUM : Hi   I think you need it to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59622&amp;title=reportcontrol-subsum#59622</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3545">markmark</a><br /><strong>Subject:</strong> 17051<br /><strong>Posted:</strong> 05 August 2010 at 4:45am<br /><br /><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>Hi <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>I think you need it to be SUMSUB(C6:C7)<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>The "C" is not Col C <O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>But I still have problems with this as well, as I cannot get it to calculate for a single row.<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>Please see my test app, where you can enter your formula.<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>Would like to see examples of a single row calculation.<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;</P><DIV>Also Why in the above does it calucalte just Col 6 and not col6 and col7?<O:P></O:P></DIV></SPAN><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>&nbsp;<O:P></O:P></SPAN></P><P style="MARGIN: 0cm 0cm 0pt" ="Ms&#111;normal"><SPAN style="FONT-FAMILY: 'Verdana','sans-serif'; COLOR: black; FONT-SIZE: 9pt; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman'; mso-ansi-: EN; mso-fareast-: EN-GB" lang=EN>Mark</P><DIV>&nbsp;</DIV><DIV><a href="http://forum.codejock.com/uploads/20100805_044440_example.zip" target="_blank">uploads/20100805_044440_example.zip</A><O:P></O:P></SPAN></DIV>]]>
   </description>
   <pubDate>Thu, 05 Aug 2010 04:45:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59622&amp;title=reportcontrol-subsum#59622</guid>
  </item> 
  <item>
   <title><![CDATA[ReportControl SUBSUM : Hey Guys,I hope somebody can help...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59576&amp;title=reportcontrol-subsum#59576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4444">axdoverm</a><br /><strong>Subject:</strong> 17051<br /><strong>Posted:</strong> 02 August 2010 at 7:00am<br /><br />Hey Guys,<br><br>I hope somebody can help me. If you look in the image below you will see that a have a SUBFORMULA in the reportcontrol with a result in the grouprow (nr. 1)<br><br><img src="uploads/20100802_065419_&#102;ormula.jpg" height="434" width="890" border="0"><br>the SUM is now calculating the kolom (nr. 2) and that works, but i would like to get the SUM result from the last colomn in the report (nr. 3). Too calculate the SUM i use the following code: (i found this code on this forum and addepted to my needs)<br><br><br><font color="#0000ff"><b>CODE EXAMPLE:</b></font><br>Public Sub RapportageOmzetPerKlant(sSQL As Variant)<br>&nbsp;'<br>&nbsp;On Error GoTo HELL<br>&nbsp;'<br>&nbsp;Dim Column As ReportColumn<br>&nbsp;Dim Record As ReportRecord<br>&nbsp;Dim Item As ReportRecordItem<br>&nbsp;Dim row As ReportRow<br>&nbsp;Dim groupRow As ReportGroupRow<br>&nbsp;'<br>&nbsp;frmMAIN.ReportControl1.Columns.DeleteAll<br>&nbsp;frmMAIN.ReportControl1.Records.DeleteAll<br>&nbsp;'<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(0, "Datum", 100, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(1, "Factuur", 80, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(2, "Aantal", 70, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(3, "Omschrijving", 220, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(4, "St. Prijs", 90, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(5, "Totaal", 100, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = True<br>&nbsp;Set Column = frmMAIN.ReportControl1.Columns.Add(6, "KLANT", 0, True)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Column.Visible = False<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp; If CNN_DB.state = 1 Then CLOSE_DB_CONNECTION<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OPEN_DB_CONNECTION (sSQL)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Do Until RST_DB.EOF = True<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Record = frmMAIN.ReportControl1.Records.Add()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(RST_DB.Fields("DATUM") &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(RST_DB.Fields("FACT_NO") &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(RST_DB.Fields("AANTAL") &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(RST_DB.Fields("OMSCHRIJVING") &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(FormatNumber(RST_DB.Fields("ST_PRIJS"), 2) &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(FormatNumber(RST_DB.Fields("REGEL_TOT_INC"), 2) &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set Item = Record.AddItem(RST_DB.Fields("KLANT") &amp; "")<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RST_DB.MoveNext<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Loop<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '<br>&nbsp;&nbsp; If CNN_DB.state = 1 Then CLOSE_DB_CONNECTION<br>&nbsp;&nbsp; '<br>&nbsp;&nbsp; frmMAIN.ReportControl1.GroupsOrder.Add frmMAIN.ReportControl1.Columns(6)<br>&nbsp;&nbsp; frmMAIN.ReportControl1.Populate<br>&nbsp;&nbsp; '<br>&nbsp;&nbsp; For i = 0 To frmMAIN.ReportControl1.Rows.count - 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set row = frmMAIN.ReportControl1.Rows(i)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If row.groupRow Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Set groupRow = row<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; groupRow.GroupFormat = " &#091;Omzet =%.02f&#093;"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; groupRow.GroupFormula = "SUMSUB(C2:C3)"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; groupRow.GroupCaption = "x"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; End If<br>&nbsp;&nbsp; Next<br>&nbsp;&nbsp; '<br>&nbsp;&nbsp; Exit Sub<br>&nbsp;&nbsp; '<br>HELL:<br>&nbsp;&nbsp; '<br>&nbsp;&nbsp; If CNN_DB.state = 1 Then CLOSE_DB_CONNECTION<br>&nbsp;&nbsp; ErrorHandler Err.Number, Err.Description, "modRAPPORTAGE", "RapportageOmzetPerKlant()"<br>&nbsp;&nbsp; '<br><br>End Sub<br><br>If i change the SUMSUB to (F2:F3) i don't get any results, what i'm missing ?? ... i cant figure is out! ... so please HELP ME!<br><br>]]>
   </description>
   <pubDate>Mon, 02 Aug 2010 07:00:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17051&amp;PID=59576&amp;title=reportcontrol-subsum#59576</guid>
  </item> 
 </channel>
</rss>