• Hide button (2000)

    Author
    Topic
    #434233

    Hi,

    I have a database request user to enter user name & password. I have table tblUserLevel to assign user different level. There a “Account Setup” button on the main form to let Admin to manager user account. Is there any way only admin login can see “Account Setup” button. However, other user can’t see this button on the main form.

    Thanks

    Viewing 0 reply threads
    Author
    Replies
    • #1023225

      You can put code in the On Load event of the form:

      Private Sub Form_Load()
      Me.cmdAccountSetup.Visible = (CurrentUser = “Admin”)
      End Sub

      where cmdAccountSetup is the name of the command button.

    Viewing 0 reply threads
    Reply To: Hide button (2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: