I'm trying to implement some boolean (yes/no) fields that are not required. If I don't know the correct value for that field, I want to be able to leave it in a NULL state. For some reason, as soon as I enter data for a new record, the boolean field immediately changes to No, and refuses to accept a NULL value. Any attempt to set it to NULL causes a "The value you entered isn't valid for this field" error. This happens when I use a triple state checkbox on a form, but also happens if I edit directly using the table's datasheet view. I am having this problem with Access 2000, but I just tried to do the same thing on Access 97 and it didn't work there either. Here are the settings I'm using for the field:
Format: Yes/No
Caption: <blank>
Default Value: Null
Validation Rule: <blank>
Validation Text: validation failed <I haven't seen this message appear>
Required: No
Indexed: No
Lookup Properties->Display Control: Text Box
I've tried all 3 formats (Yes/No, True/False, On/Off)
I've tried a validation rule: True Or False Or Is Null
My method for trying to enter a null value is this:
The Lookup properties for the field cause it to be displayed as a text box. I enter datasheet view for the table, and type Null as the value of the boolean field. I immediately get the error message. I've had the same problem if I try to use a triple state checkbox in a form linked to this field.
This seems like the most basic thing in the world, I have no idea why it won't work. I've run out of ideas, does anybody know how to make Null booleans work? Thanks.
Format: Yes/No
Caption: <blank>
Default Value: Null
Validation Rule: <blank>
Validation Text: validation failed <I haven't seen this message appear>
Required: No
Indexed: No
Lookup Properties->Display Control: Text Box
I've tried all 3 formats (Yes/No, True/False, On/Off)
I've tried a validation rule: True Or False Or Is Null
My method for trying to enter a null value is this:
The Lookup properties for the field cause it to be displayed as a text box. I enter datasheet view for the table, and type Null as the value of the boolean field. I immediately get the error message. I've had the same problem if I try to use a triple state checkbox in a form linked to this field.
This seems like the most basic thing in the world, I have no idea why it won't work. I've run out of ideas, does anybody know how to make Null booleans work? Thanks.