Consulting

Results 1 to 2 of 2

Thread: Solved: Triple Value Check Boxes

  1. #1
    VBAX Tutor
    Joined
    Oct 2007
    Posts
    210
    Location

    Solved: Triple Value Check Boxes

    I have a checkbox (let's call it CB1) that is set up for triple value. I know that the greyed value is null but when I attempt to use an if statement:

    [VBA]if CB1.value=null then
    ' Enter code
    end if[/VBA]

    I get an "Invalid use of Null" error. I then tried this:

    [VBA]if CB1.value is null then
    ' Enter Code
    end if[/VBA]

    And I got an "object required" error. I'm at a loss for how to do this. Please help.
    "The amount of stupid people in the world is God's way of punishing the smart people" - protean_being

  2. #2
    VBAX Tutor
    Joined
    Oct 2007
    Posts
    210
    Location
    Nevermind. I got it. For those who were curious there is a function called IsNull(value) that returns a boolean.
    "The amount of stupid people in the world is God's way of punishing the smart people" - protean_being

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •