If Forms("xxx").Opened Then If user.Name = e.Table.Current("业务负责") Then Forms("xxx").Controls("button1").Enabled = True Forms("xxx").Controls("button2").Enabled = True Else Forms("xxx").Controls("button1").Enabled = False Forms("xxx").Controls("button1").Enabled = False End If End If