Foxtable(狐表)用户栏目专家坐堂 → 关于修改权限问题


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

主题:关于修改权限问题

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


加好友 发短信
等级:幼狐 帖子:134 积分:996 威望:0 精华:0 注册:2018/9/13 16:41:00
关于修改权限问题  发帖心情 Post By:2019/3/12 15:37:00 [只看该作者]

您好!  我在表格增加了录入员列,当登陆名不是录入员,管理员、开发者 不能编辑行,写入了如下代码但是没效果。

If user.name = e.Row("录入员") OrElse User.Name = "管理员" OrElse User.Name = "开发者" Then
Else
    If user.name = "采购部" Then
        If e.Col.name = "供应商" OrElse e.Col.name = "采购反馈" Then
        Else
            e.cancel = True
        End If
    ElseIf user.name = "库管员" Then
        If e.Col.name = "到货数量" OrElse e.Col.name = "库管员" OrElse e.Col.name = "出库" OrElse e.Col.name = "到货日期" OrElse e.Col.name = "货位" Then
        Else
            e.cancel = True
        End If
    End If
    
End If

 回到顶部