Number of rows in a report using VB

I have a VB report that contains a list of places. I have this list divided into areas, and I need to calculate the total number of lines in each section. I have a groupHeader that contains my field field, and then in the group I list the corresponding entries for this field. Then in groupFooter I would like to give the total number of entries in the group. How can i do this? I have two fields in my Footer group

  • groupCount
  • groupTotalAmount

- this sums up the value that I have in each entry. Any recommendations would be appreciated.

+3
source share
1 answer

ewein,

, . - NorthWind. Customers , , .

, , , , , . GroupFooter. datafield "" ( , groupheader). :

  • SummaryFunction: - Count
  • SummaryGroup: - GroupHeader1 ( , )
  • SummaryRunning: -
  • SummaryType: - SubTotal

, . , "TextBox1" - , GroupFooter:

Private count As Integer = 0

Public Sub GroupHeader1_Format()
    count = 0
End Sub

Public Sub Detail1_Format()
    count += 1
End Sub

Public Sub GroupFooter1_Format()
    TextBox1.Text = count.ToString()
End Sub

, . ActiveReports blogs, , .

+3

All Articles