Results 1 to 4 of 4
  1. #1
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672

    Tickbox Question

    Is it possible to set it to where if tickbox1 is checked then EITHER tickbox2 OR tickbox3 has to be checked? I am not sure how to set this one up, I think a SQL OR statement would do it, but I am not familar with SQL.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    on the click event, issue conditionals. that would be easiest. it would be even easier if you had an option group with all of the boxes in it. Because you can specify in the property sheet whether you allow one or multiple values. That way, Access does most of the legwork for you. Code is hardly ever needed in that scenario.

  3. #3
    jo15765's Avatar
    jo15765 is offline Expert
    Windows 7 Access 2000
    Join Date
    Nov 2010
    Location
    6 Feet Under
    Posts
    672
    i was thinking of the onclick event but i couldn't figure out how to use an or statement. i know how to do an if/then, but have never used an or. the options group sounds like an interesting approach, i am going to research this one and find out more!

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by jo15765 View Post
    i was thinking of the onclick event but i couldn't figure out how to use an or statement. i know how to do an if/then, but have never used an or. the options group sounds like an interesting approach, i am going to research this one and find out more!
    it's a control, jo. the option group is a control. basically, it takes more than one control, groups them together, and assigns long values (1,2,3,etc...) to the group object, based on what control is selected. this is best. seriously cuts down on code writing need too.

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

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