Results 1 to 3 of 3
  1. #1
    rajulasb is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    4

    Disable command button

    hi
    i have created a form called Login Dialog in access with User name and Password. Based on the user i need to disable a command button in a form called Home.

    Can anyone help me please..i am new to access...i am using access 2007

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716
    Something along this line should work -

    In the form load event
    -disable the command button involved (for all)
    Open the Form
    -go through the login dialog
    - if valid user name password proceed,otherwise go through login again or quit.
    -if user should see command button then enable it otherwise just continue.

  3. #3
    rajulasb is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    4
    hi
    thanx 4 ur reply....

    Though i find it difficult....

    Login FOrm name : Login Dialog...in this form i have username and password and have login button.....if the username and password is right the user can enter into the Home form.........

    In the Home Form i have some command buttons....i want to disable the command button for some users and full view for administrators.....

    can u help ...

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Continuous Form Disable Command Button
    By mbake085 in forum Programming
    Replies: 4
    Last Post: 05-27-2011, 08:55 AM
  2. Disable master form close button
    By Carpy01 in forum Forms
    Replies: 3
    Last Post: 12-31-2010, 05:41 PM
  3. Disable App Close button in 2007
    By ajetrumpet in forum Programming
    Replies: 3
    Last Post: 09-05-2010, 11:32 PM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. how to disable command button
    By archie in forum Access
    Replies: 1
    Last Post: 08-27-2009, 11:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums