Foxtable(狐表)用户栏目专家坐堂 → 多值字段如何统计


  共有2550人关注过本帖树形打印复制链接

主题:多值字段如何统计

帅哥哟,离线,有人找我吗?
zyxhx
  1楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:388 积分:3212 威望:0 精华:0 注册:2017/4/2 19:33:00
多值字段如何统计  发帖心情 Post By:2020/8/14 15:34:00 [显示全部帖子]

Dim nms() As String = {"xinmin","qsdate","jsdate","CheckedComboBox1"}
Dim sps() As String = {"'","#","#","'"}
Dim bjf() As String = {" = "," >= "," <= "," = "}
Dim fds() As String = {"医生姓名","收款日期","收款日期","项目名称"}
Dim filter As String
For i As Integer = 0 To nms.Length - 1
   
    If e.Form.Controls(nms(i)).value IsNot Nothing Then
        If filter > "" Then
            filter =  filter & " and "
        End If
        filter = filter & fds(i) & bjf(i) & sps(i) & e.Form.Controls(nms(i)).value & sps(i)
    End If
Next
If filter > "" Then
    Tables("门诊医生工作量明细").filter = filter
End If

 

请问老师:假设以上代码中“医生姓名”和“项目名称”为多值字段,控件使用了复先组合框,代码应该如何修改?


 回到顶部
帅哥哟,离线,有人找我吗?
zyxhx
  2楼 | QQ | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:小狐 帖子:388 积分:3212 威望:0 精华:0 注册:2017/4/2 19:33:00
  发帖心情 Post By:2020/8/14 16:44:00 [显示全部帖子]

感谢老师!

 


 回到顶部