以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  对应数据  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=64408)

--  作者:阿依肯
--  发布时间:2015/2/12 23:41:00
--  对应数据

"上级医师查房记录"表属性datacolchanged中如下代码

If e.DataCol.Name = "住院号" Then
    If e.NewValue Is Nothing Then
        e.DataRow("床号") = Nothing
    Else
        Dim dr As DataRow
        dr = DataTables("住院记录").Find("[病人信息_床号] = \'" & e.NewValue & "\'")
        If dr IsNot Nothing Then
            e.DataRow("病人信息_床号") = dr("床号")
        End If
    End If
End If
If e.DataCol.Name = "住院号" Then
    If e.NewValue Is Nothing Then
        e.DataRow("姓名") = Nothing
    Else
        Dim dr As DataRow
        dr = DataTables("住院记录").Find("[病人信息_姓名] = \'" & e.NewValue & "\'")
        If dr IsNot Nothing Then
            e.DataRow("病人信息_姓名") = dr("姓名")
        End If
    End If

执行时出现错误


此主题相关图片如下:1111.jpg
按此在新窗口浏览图片
 下载信息  [文件大小:   下载次数: ]
点击浏览该文件:病例.zip


--  作者:阿依肯
--  发布时间:2015/2/12 23:55:00
--  

问题解决了,使表达式列出现问题