Results 1 to 4 of 4
  1. #1
    aehernan is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    9

    Checkbox priority

    I have created a form with two different checkboxes. The last checkbox should only be checked once the first has already been checked. You shouldn't be able to check the last box if the first isn't checked yet. How can I make this happen?

    Thank you!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,523
    disable chkBox2 in design mode, then in the chkBox1 afterupdate

    Code:
    sub chkBox1_afterupdate()
    chkBox2.enabled= chkBox1.value
    end sub

  3. #3
    aehernan is offline Novice
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    9
    Thanks, this worked!

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    You'll need the same code in the Form_Current event.

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

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

Similar Threads

  1. Changing colour on priority.
    By Chris6789 in forum Access
    Replies: 9
    Last Post: 07-14-2019, 10:52 AM
  2. Priority Field
    By linvall in forum Access
    Replies: 33
    Last Post: 10-24-2018, 02:37 PM
  3. VBA Search Priority Code
    By acm007 in forum Programming
    Replies: 3
    Last Post: 02-05-2018, 04:01 PM
  4. Union - Priority
    By T1969 in forum Access
    Replies: 12
    Last Post: 02-11-2017, 06:45 AM
  5. priority oder of commands
    By Jen0dorf in forum Access
    Replies: 3
    Last Post: 01-23-2016, 01:14 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