我有一个表,表中有一个“姓名”列,列中的内空如:张飞,张飞(到店),刘备,刘备(到店),关羽,关羽(到店),曹操,曹操(到店)......每一个姓名会另起一行加(到店)二字,在汇总时想忽略(到店)二字,不知道代码应该怎么改,求大侠指点?跪谢!
汇总的代码为:
Dim t As Table = Tables("一店_table1")
Dim g As Subtotalgroup
t.SubtotalGroups.Clear()
t.GroupAboveData = True
t.TreeVisible = True
t.SpillNode = True
g = New Subtotalgroup
g.Aggregate = AggregateEnum.Sum
g.GroupOn = "姓名"
g.TotalOn = "购买金额"
g.Caption = "{0} 小计"
t.SubtotalGroups.Add(g)
t.Subtotal()