Foxtable(狐表)用户栏目专家坐堂 → [求助]大神帮忙看下哪里错了!


  共有6084人关注过本帖平板打印复制链接

主题:[求助]大神帮忙看下哪里错了!

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


加好友 发短信
等级:童狐 帖子:292 积分:1864 威望:0 精华:0 注册:2013/3/16 21:31:00
[求助]大神帮忙看下哪里错了!  发帖心情 Post By:2013/4/12 22:17:00 [只看该作者]

Select Case e.DataCol.Name
    Case "品名"
        If e.NewValue Is Nothing Then 

            e.DataRow("单价") = Nothing 
        Else
            Dim dr As DataRow
            dr = DataTables("产品").Find("[品名] = '" & e.NewValue & "'")
            If dr IsNot Nothing Then 
                If e.DataRow("单价").IsNumeric AndAlso e.DataRow("单价") < 0 Then
                    e.DataRow("单价") = dr("单价")
                End If
            End If
        End If

End Select

大神帮忙看看,为什么不能把小于0的单价引用过来呢?


 回到顶部