Foxtable(狐表)用户栏目专家坐堂 → 高手们帮我看看,问题出在哪里


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

主题:高手们帮我看看,问题出在哪里

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


加好友 发短信
等级:四尾狐 帖子:824 积分:6288 威望:0 精华:0 注册:2012/3/1 3:17:00
  发帖心情 Post By:2013/5/9 3:50:00 [显示全部帖子]

Dim dr As DataRow
dr = DataTables("会员表").Find("会员编号 = '" & e.DataRow("会员编号") & "'" )
If e.DataCol.Name = "会员编号" Then
    If e.DataRow.IsNull("会员编号") Then
        e.DataRow("姓名") = Nothing
        e.DataRow("性别") = Nothing
        e.DataRow("年龄") = Nothing
        e.DataRow("联系电话") = Nothing
    Else
        e.DataRow("姓名") = dr("会员姓名")
        e.DataRow("性别") = dr("性别")
        e.DataRow("年龄") = dr("年龄")
        e.DataRow("联系电话") = dr("联系电话")
    End If
ElseIf e.DataCol.Name = "hybh" Then
    If e.DataRow.IsNull("hybh") Then
        e.DataRow("xm") = Nothing
        e.DataRow("xb") = Nothing
        e.DataRow("nl") = Nothing
        e.DataRow("lxdh") = Nothing
    Else
        e.DataRow("xm") = dr("会员姓名")
        e.DataRow("xb") = dr("性别")
        e.DataRow("nl") = dr("年龄")
        e.DataRow("lxdh") = dr("联系电话")
    End If
End If

 

表中测试正常


 回到顶部