Defaulting a Required Yes/No field to Blank

  • Thread starter DoctorV3774 via AccessMonster.com
  • Start date
D

DoctorV3774 via AccessMonster.com

I have a field in my table where the data type is Yes/No and it is a
required field. The user wants the default value for the control to be
blank yet whenever we go to a new record the default value shows up as No.
Can you set a Yes/No field that is required to default to blank? There are
no default values set at either the control or table field level.

Thanks
 
M

Marshall Barton

DoctorV3774 said:
I have a field in my table where the data type is Yes/No and it is a
required field. The user wants the default value for the control to be
blank yet whenever we go to a new record the default value shows up as No.
Can you set a Yes/No field that is required to default to blank? There are
no default values set at either the control or table field level.


A Yes/No field can only have a value of True or False, not a
blank or Null.

However, if you make the field an Integer instead of Yes/No,
then you can bind it to a check box control on your form.
Then you can set the control's TripleState property to get
it to display as a grayed out blank when the field is Null.
 

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