The value of a yes/no field is either -1 or 0.
That's what should be stored in your table.
No user need ever actually 'see' the table.
To display "Yes" or "No" in a query, you could use:
NewField:IIf([FieldName]=-1,"Yes","No")
You can then use [NewField] in your report or table.
Also, you can display, on a form or in a report, the text "yes" or
"no" instead of -1 or 0 by using an unbound text control.
Set it's control source to the [Yes/No] field.
Then as it's Format property, write:
;"Yes";"No";
See Access help on the Format Property + Currency and Number datatype
to learn why this works.
One should also be able to right-click on the column in query design
view, select properties and put Yes/No in the format box.
You can then use [NewField] in your report or table.
Also, you can display, on a form or in a report, the text "yes" or
"no" instead of -1 or 0 by using an unbound text control.
Set it's control source to the [Yes/No] field.
Then as it's Format property, write:
;"Yes";"No";
See Access help on the Format Property + Currency and Number
datatype to learn why this works.
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.