以文本方式查看主题

-  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=69272)

--  作者:yifan3429
--  发布时间:2015/6/2 14:28:00
--  逻辑错误 求助
If e.Col.name= "订单编号" Then
    If e.Row("客服人员") <> User.Name Then \'如果是其他用户,且业务员和登录用户名不同
        messagebox.show( "我是好员工 一般不愿意帮别人 是吗?" ,"提示")
        e.Cancel = True \'则取消编辑
    Else If e.Row("客服人员") = User.Name Then
        If e.Row.isnull("接单日期")=False AndAlso e.Row.isnull("下单日期")=False AndAlso e.Row.isnull("客服备注")=False AndAlso e.Row.isnull("交货日期")=False AndAlso e.Row.isnull("发货地址")=False AndAlso e.Row.isnull("订单内容")=False AndAlso e.Row.isnull("材质")=False AndAlso e.Row.isnull("颜色")=False Then
            e.Cancel = True \'则取消编辑
            messagebox.show( "接单,下单,交货日期,材质,颜色 订单内容,备注 发货地址不能为空" ,"提示" )     为空也会打开对话框
        Else
            forms("订单明细").show
        End If
    End If
End If

我被自己绕晕了    求帮我重新编写下    

--  作者:Bin
--  发布时间:2015/6/2 14:31:00
--  
If e.Row.isnull("接单日期")  orelse e.Row.isnull("下单日期") orelse  e.Row.isnull("客服备注") orelse  e.Row.isnull("交货日期") orelse  e.Row.isnull("发货地址") orelse  e.Row.isnull("订单内容") orelse e.Row.isnull("材质") orelse e.Row.isnull("颜色") Then
[此贴子已经被作者于2015/6/2 14:30:52编辑过]