Foxtable(狐表)用户栏目专家坐堂 → [求助]窗口筛选问题


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

主题:[求助]窗口筛选问题

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/11/2 16:29:00 [显示全部帖子]

Dim txt As String = e.Form.controls("TextBox6").text
Dim tbl As Table = Tables("疾病编码库维护_Table1")
Dim txt1 As String
If txt.length =3 Then
    Dim found As Boolean = False
    For Each dr As DataRow In DataTables("疾病编码库").DataRows
        txt1 = dr("ICD10编码")
        Dim txt2() As String = txt1.Split("-")
        If txt>= txt2(0) And txt <= txt2(1) Then
            '            tbl.Filter = "[ICD10编码] ='" & txt1 & "'"
            found = True
            Exit For
        End If
    Next
    If found Then
        tbl.Filter = "[ICD10编码] like'" & txt & "'"
    Else
        msgbox("没找到")
    End If
Else
    tbl.Filter = ""
End If

 回到顶部