Results 1 to 2 of 2
  1. #1
    superllama is offline Novice
    Windows 10 Access 2007
    Join Date
    May 2016
    Posts
    1

    Data Validation: Mandatory to fill out Textbox if certain option is selected

    Greetings fellow access users!

    I am creating a new form and I'm having issues finding a correct data validation formula to meet my needs. I have a combo box on my form that gives a user various options to select that indicate the status of a part. One of the options is "On Hold". If a user selects this option, I want them to fill out the "comments" text box to indicate why.


    If a user selects a different status from the combo box, then it is not mandatory that they fill out the comments section.



    Thank you in advance for any help that you may provide!

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,530
    Use the forms BeforeUpdate event to validate the value of controls on the form. The update of the form can be cancelled.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Fill data entry textbox with variable
    By broecher in forum Forms
    Replies: 6
    Last Post: 11-18-2011, 07:54 PM
  2. Replies: 1
    Last Post: 11-04-2011, 06:53 AM
  3. Textbox data validation rules.....
    By smorelandii in forum Access
    Replies: 1
    Last Post: 02-01-2011, 09:52 PM
  4. Auto fill field upon New Record selected
    By NOTLguy in forum Programming
    Replies: 27
    Last Post: 12-05-2010, 05:12 PM
  5. Replies: 8
    Last Post: 03-29-2010, 10:20 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