The following event procedure runs when the Account Maintenance window opens. It locks the Account Number field for a specific user:
Private Sub Window_AfterOpen() If UserInfoGet.UserID = "LESSONUSER1" Then Account.Locked = True End If End Sub