In the following example, the event procedure disables a field in the Salesperson Maintenance window for a specific user:
Private Sub Window_BeforeOpen() If UserInfoGet.UserName = "LESSONUSER2" Then 'Disable the Commission Percent field for this user Percent.Enabled = False End If End Sub