The following example shows a grid that’s been hidden using either the Hide method or the Visible property:
Private Sub Window_BeforeOpen(OpenVisible As Boolean) If UserInfoGet.UserID <> "LESSONUSER1" Then SalesTransactionEntryDetail.Show End If End Sub