Foxtable(狐表)用户栏目专家坐堂 → 请教:怎样用SELECT CASE 写这段代码


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

主题:请教:怎样用SELECT CASE 写这段代码

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


加好友 发短信
等级:九尾狐 帖子:2180 积分:13816 威望:0 精华:2 注册:2012/2/25 10:59:00
  发帖心情 Post By:2012/5/26 23:57:00 [显示全部帖子]

Select Case e.Col.Name

     Case  "产品名称"

               if e.Row.IsNull("订单号") = True then

                  e.Cancel = True
               end if

 Case  "订购件数"

               if e.Row.IsNull("产品名称") = True then

                  e.Cancel = True
               end if

 Case  "到货日期"

               if e.Row.IsNull("订购件数") = True then

                  e.Cancel = True
               end if

end select


 回到顶部