其中医疗部只显示按钮2、8、11、02,
If User.Group <> "医疗部" Then
e.Form.Controls("Button1").Enabled = True
e.Form.Controls("Button07").Enabled = True
e.Form.Controls("Button7").Enabled = True
e.Form.Controls("Button09").Enabled = True
e.Form.Controls("Button03").Enabled = True
e.Form.Controls("Button04").Enabled = True
e.Form.Controls("Button13").Enabled = True
e.Form.Controls("Button15").Enabled = True
e.Form.Controls("Button14").Enabled = True
e.Form.Controls("Button3").Enabled = True
e.Form.Controls("Button08").Enabled = True
e.Form.Controls("Button05").Enabled = True
e.Form.Controls("Button06").Enabled = True
e.Form.Controls("Button12").Enabled = True
e.Form.Controls("Button2").Enabled = False
e.Form.Controls("Button8").Enabled = False
e.Form.Controls("Button11").Enabled = False
e.Form.Controls("Button02").Enabled = False
你自己写的代码就和你描述的情况不对应,那当然不是应有的效果. 这不是刚好反过来了吗?
[此贴子已经被作者于2015/4/10 16:10:28编辑过]