Results 1 to 2 of 2
  1. #1
    Breeves22 is offline Novice
    Windows XP Access 2000
    Join Date
    Sep 2010
    Posts
    3

    Using a combo box selection to disable or hide groups of fields

    Good afternoon.



    I am fairly new to access and although i have managed to figure out most of the basics myself there are still some things that i require aid with and i am hoping someone here can help me.

    I have created a form to monitor our cases at work and in that form there is a combo box which displays the type of work it is (simple, complex, Stairlift).

    Further down the form i have the works progress sections for the three types of works. Each works progress section contains fields for dates relating to when each action is done and the next needs to be done by.

    I have grouped all the fields in each section together to make it easier.

    What i would like to do is be able to select an item in the combo box (for example Simple) and then either disable or hide the works progress groups for Complex and Stairlifts. Leaving only the fields my users will need to fill in.

    Thankyou for your time

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    in the AfterUpdate event of that combobox, put your code to make other controls not visible: i.e.

    me.ControlName.visible=false

    just stack as many as you want there.

    keep in mind that you may need to reverse that state also - if so, consider the OnCurrent event of the form's property itself.

    Hope this helps.

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

Similar Threads

  1. Disable/Hide Quick Access Toolbar
    By Jackal in forum Security
    Replies: 10
    Last Post: 11-22-2012, 05:25 PM
  2. Disable fields based on another.
    By scottay in forum Forms
    Replies: 0
    Last Post: 08-10-2010, 05:40 PM
  3. combo box disable edit (update)
    By jheacox in forum Forms
    Replies: 10
    Last Post: 09-28-2009, 10:07 AM
  4. Replies: 1
    Last Post: 08-26-2009, 10:45 AM
  5. disable/gray out fields
    By michaelpclisbee in forum Forms
    Replies: 2
    Last Post: 07-05-2009, 07:59 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