Results 1 to 2 of 2
  1. #1
    mlrucci is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2018
    Posts
    202

    check box yes to automatically make cbo1, cbo 2, cob 3 equal yes

    Good afternoon,


    I am looking to make an unbound check box default no but if clicked to yes, then make cbo1, cbo2, cbo3 yes, else blank to allow yes or no. I want an entire row (cbo1, cbo2,cbo3) to be yes if the ckeckbox is clicked but allow the field to be either yes or no if unclicked. Anyone have ideas? Just a note, the cbo field is list with "Yes"; "No" in the table's row source.

    Tried
    If me.ck0 = Yes then
    me.cbo1 = "Yes"
    End If

    and cannot get the single cbo field to work much less several fields.

    Much Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    in the AFTERUPDATE event of the check box

    Code:
    sub chkBox_afterupdate()
    if chkBox.value then
       cbo1 = "yes"
       cbo2 = "yes"
       cbo3 = "yes"
    else
       cbo1 = null
       cbo2 = null
       cbo3 = null
    endif
    end sub

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

Similar Threads

  1. Replies: 7
    Last Post: 12-02-2016, 01:13 PM
  2. Replies: 5
    Last Post: 09-25-2014, 08:33 PM
  3. Replies: 35
    Last Post: 01-08-2014, 01:33 PM
  4. Replies: 7
    Last Post: 11-16-2012, 08:13 AM
  5. How to make my query not equal to...
    By katrinanyc926 in forum Queries
    Replies: 3
    Last Post: 12-08-2010, 11:27 AM

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