• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Grayed check box

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.
0
Aiysha
Asked:
Aiysha
1 Solution
 
dmitryz6Commented:
set default value property for checkbox to 0
0
 
thenelsonCommented:
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now