Results 1 to 3 of 3
  1. #1
    michaelpclisbee is offline Novice
    Windows Vista Access 2007
    Join Date
    Jul 2009
    Posts
    2

    disable/gray out fields


    I want to disable and gray out certain form fields, based on the combobox etc selections in other fields on the same form. Using code, I can make those fields disappear, but I'd rather not. For example, one dropdown helps you choose your marital status. If you select single, I want to disable and grey out the fields covering divorce dates etc... Any coding help would really help. Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Your code would go in the AfterUpdate event of the ComboBoxes. If you supply one real example in PsudoCode we could change it to code for you.

  3. #3
    bohemian9485 is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2009
    Posts
    2
    In the AfterUpdate event of the ComboBox:Me!ControlNeedsToDisabled.Enabled = False (instead of .visible = False)

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

Similar Threads

  1. Replies: 15
    Last Post: 04-11-2015, 08:15 AM
  2. Replies: 5
    Last Post: 06-17-2009, 02:18 PM
  3. How to disable edit for combo boxes
    By access in forum Forms
    Replies: 3
    Last Post: 06-17-2009, 09:11 AM
  4. Replies: 1
    Last Post: 06-02-2009, 04:44 PM
  5. Can you disable design view?
    By nkenney in forum Forms
    Replies: 1
    Last Post: 04-23-2009, 05:08 AM

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