Editing One Field Changes Another Field

B

bgong

I have a simple form with just a text box and a check box. Both
controls are bound to its own field in a table. Both fields are not
'required' and both have no default values. When I create a new
record, the textbox is blank and the check box shows gray since its
value is Null. So far, so good. However, as soon as I type anything
in the textbox, the checkbox gets cleared and its underlying value
gets set to false. Is this normal behavior? Is there any way I can
edit the textbox without having the checkbox change value behind my
back?

Any help, suggestions, would be appreciated. Thanks.

bgong
 
A

Allen Browne

If the check box is bound to a Yes/No field in a JET (Access) table, it has
only 2 values: True or False. It cannot be Null.

If you want a triple-state field (yes/no/null), you will need to make it a
Number field in table design.

There are other reasons why you may want to do that too:
http://allenbrowne.com/NoYesNo.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top