Results 1 to 2 of 2
  1. #1
    Gryphen957 is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    3

    Disable toggle off option

    I have a check box that, when selected, brings up a form. When the form comes up, it is filtered to show only information relating directly to the record that contains the check box.



    I am wondering if there is anyway to prevent the box from being unchecked while there is related information in the form.

    Currently, if I uncheck the box, I lose the visual indicator that the related information is there.

  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
    You should be able to test the data in the before update event of the checkbox, and if appropriate this will stop the update:

    Cancel = True

    You can test with DCount or a recordset.
    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: 09-13-2010, 01:57 PM
  2. Toggle Button Options
    By Matthieu in forum Forms
    Replies: 2
    Last Post: 11-23-2009, 04:05 PM
  3. no option to import xls file or option all files
    By captgnvr in forum Import/Export Data
    Replies: 3
    Last Post: 09-22-2009, 10:19 AM
  4. Disable ALT+TAB key using VBA
    By Yance in forum Programming
    Replies: 8
    Last Post: 08-27-2009, 10:36 AM
  5. Toggle checkbox
    By stewarta in forum Programming
    Replies: 9
    Last Post: 04-16-2009, 02:45 PM

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