Results 1 to 2 of 2
  1. #1
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93

    Require text input in a field dependant on toggle button

    What I have:


    tblPersonal
    -tgbNotAvailable
    -txtNotAvailableReason

    What I am trying to do:
    I would like for txtNotAvailableReason to be required when a clerk activates tgbNotAvailable. I can instruct clerks I have now to do it, but I need to make sure they do.

    The problem:
    I have absolutely no idea where to even begin with this, let alone how to make it happen.

    Thank you in advance for your time and help.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Not sure if there's a validation rule to handle the conditional nature of the data. I'd use the before update event of the form:

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

    Your test would be along the lines of:

    If Me.tgbNotAvailable = Whatever AND Len(Me.txtNotAvailableReason & vbNullString) = 0 Then
    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: 2
    Last Post: 05-05-2010, 02:52 PM
  2. Help Require (Macro Save button )?????
    By aligahk06 in forum Access
    Replies: 1
    Last Post: 04-18-2010, 08:38 AM
  3. Replies: 1
    Last Post: 03-22-2010, 03:37 PM
  4. Replies: 6
    Last Post: 02-09-2010, 07:53 AM
  5. Toggle Button Options
    By Matthieu in forum Forms
    Replies: 2
    Last Post: 11-23-2009, 04:05 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