Results 1 to 2 of 2
  1. #1
    JWJW is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    1

    How do I disable form control based on another field's input?

    I am very new at MS Office Applications and at posting to forums, so if I have done something wrong, please let me know so I can correct it.

    My problem is: How do I make a form that disables certain controls based on another field's value?

    Background: I work at furniture company and we need to send wood samples to our customers.
    We send out Pine and Maple wood samples.
    Sometimes the customer only wants Pine samples, while another may want both Pine and Maple, and another may want just Maple.

    To keep track of who I've sent samples to and what samples I sent, I've created a database in Access 2016.

    Objects: I have a Table that contains the following fields: CustomerName (short text), PreferredWoodType (drop down list), SentPine (Y/N), SentMaple (Y/N)

    I have a Form for entering customer info for all the fields in the above table. So If my customer wants Pine samples, I will enter Pine that as their preferred wood type. When I select Pine from the drop-down list, I want the Maple checkbox to become inactive or disabled, so info cannot be incorrectly entered about that customer.



    I believe VBA or Macro can help me with this, but I do not know where to learn the language.

    Thank you very much for your consideration, and Merry Christmas.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Here's the general concept:

    http://www.baldyweb.com/ConditionalVisibility.htm

    But your "sent" fields should probably be records in a related table. What happens when you add oak, or other woods? The concept is called normalization:

    Fundamentals of Relational Database Design -- r937.com
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 1
    Last Post: 03-14-2017, 06:46 AM
  2. Replies: 1
    Last Post: 04-19-2016, 10:53 PM
  3. Replies: 13
    Last Post: 11-11-2014, 02:43 PM
  4. populating field in form based on input field
    By BrandonFinn in forum Forms
    Replies: 7
    Last Post: 10-30-2014, 10:45 AM
  5. Textbox Control Source As Field Input
    By Jester0001 in forum Forms
    Replies: 4
    Last Post: 03-02-2012, 10:50 AM

Tags for this Thread

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