Foxtable(狐表)用户栏目专家坐堂 → 请教一个关于移除列的问题


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

主题:请教一个关于移除列的问题

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


加好友 发短信
等级:管理员 帖子:47449 积分:251065 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2013/5/6 10:24:00 [显示全部帖子]

你可以判断一下:

 

If User.IsRole("员工") Then
    If Tables("monthplan").Cols.Contains("主任评分") Then
        Tables("monthplan").Cols.Remove("主任评分")
    End If
    If Tables("monthplan").Cols.Contains("经理评分") Then
        Tables("monthplan").Cols.Remove("经理评分")
    End If
    If Tables("monthplan").Cols.Contains("综合得分") Then
        Tables("monthplan").Cols.Remove("综合得分")
    End If
ElseIf User.IsRole("中心主任") Then
    If Tables("monthplan").Cols.Contains("经理评分") Then
        Tables("monthplan").Cols.Remove("经理评分")
    End If
    If Tables("monthplan").Cols.Contains("综合得分") Then
        Tables("monthplan").Cols.Remove("综合得分")
    End If
End If


 回到顶部