Results 1 to 2 of 2
  1. #1
    4 Star Lounger
    Join Date
    Feb 2006
    Posts
    504
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hide button (2000)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Hide button (2000)

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •