The following example hides the grid in the Sales Transaction Entry window based on the current user:
Private Sub Window_BeforeOpen(OpenVisible As Boolean) If UserInfoGet.UserID = "LESSONUSER1" Then SalesTransactionEntryDetail.Visible = False End If End Sub