Yes/No Text in List Box

G

Glynn

My list box returns values of '-1' or '0', for my Yes/No fields. I want it
to return 'Yes' or 'No', not the numeric expression of the value.

In the Table I have set the datatype Yes/No to 'Text' in the Display
property, and I note that the Query on which the List Box is based - returns
the tesxt 'Yes' or 'No'.

How can I get the List Box to display the texts 'Yes' or 'No'.?
 
J

John W. Vinson/MVP

My list box returns values of '-1' or '0', for my Yes/No fields. I want it
to return 'Yes' or 'No', not the numeric expression of the value.

In the Table I have set the datatype Yes/No to 'Text' in the Display
property, and I note that the Query on which the List Box is based - returns
the tesxt 'Yes' or 'No'.

How can I get the List Box to display the texts 'Yes' or 'No'.?

Yes/True/Checked is in fact stored as -1, No/False/Unchecked as 0.

You can use a listbox with the settings:

Row Source Type: List of Values
Column Count: 2
Column Widths: 0;0.25"
Bound Column: 1
Row Source: -1;"Yes";0;"No"
 

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

Similar Threads

Yes/No in a List Box 2
Combo Box Yes/No error 2
Access MS access forms list box problems 1
trouble with yes/no/all combo box 6
Can't select from list box 3
Yes/No Field 2
formating an unbound text box 1
MS Access problem 0

Top