在窗口的AfterLoad事件中设置以下代码后,管理员登陆,按钮也是灰的,不能用。
If User.Group <> "管理员" Then e.Form.Controls("Button1").Enabled = False e.Form.Controls("Button3").Enabled = FalseEnd If