如果状态是整数:
Dim g As New GroupTableBuilder("统计表1", DataTables("表a"))
Dim n As String =e.Form.Controls("状态").Value
If n > "" Then
g.Filter = = "状态 in(" & n & ")"
End With
如果状态是字符:
Dim g As New GroupTableBuilder("统计表1", DataTables("表a"))
Dim n As String =e.Form.Controls("状态").Value
If n > "" Then
g.Filter = = "状态 in(‘" & n.Replace(",", "','") & "’)"
End With
好好看看:
http://www.foxtable.com/help/topics/0102.htm
http://www.foxtable.com/help/topics/1647.htm
http://www.foxtable.com/help/topics/1284.htm
[此贴子已经被作者于2012-7-27 8:29:34编辑过]