Grayed check box

Posted on 2006-04-13
Last Modified: 2008-01-09
When the form loads, the checkbox color is gray, if clicked the check box has a check and the color turns to white. If I dont check it and add record, it gives -1 in the data field,does anyone know whats going on..I want the check box to look white when the form is loaded.

Thank you.
Question by:Aiysha
    LVL 19

    Accepted Solution

    set default value property for checkbox to 0
    LVL 39

    Expert Comment

    The checkbox is what is known as a triple state checkbox.  Grey is null, checked is true, yes or -1 (actually anything other than zero is true) and unchecked is false, no or zero.  If the triple state is set to the default no setting, as soon as you click in the checkbox, it will alternate between true and false.  If the triple state property is set to yes, the checkbox will switch between null, true, false, null, etc.  By default, for new records, a tristate checkbox will be null or greyed out.  To make the default false, set the default value property to 0 as dmitryz6 stated.  To make the default true, put -1 in the default property.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    Suggested Solutions

    This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now