以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  库存不足预警  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=90428)

--  作者:huaqing8828
--  发布时间:2016/9/12 16:01:00
--  库存不足预警
当本月库存数小于安全库存数时,”安全库存数“列变红色显示的代码怎么写,我这样写不对,应该怎么写
If e.Col.Name = "本月库存数" Then
    If
e.Row.IsNull(e.Col.Name) = False
       
If e.Row(e.Col.Name) < "安全库存数" Then
            e.Style = "库存不足"
       
End If
    End
If
End
If


--  作者:有点蓝
--  发布时间:2016/9/12 16:14:00
--  
If e.Col.Name = "本月库存数" Then 
    If
 e.Row.IsNull(e.Col.Name) = False 
        
If e.Row(e.Col.Name) < 
e.Row("安全库存数") Then 
            e.Style = "库存不足" 
        
End If
    End
 If
End
 
If