Yes/No data type conversion to Text for display

R

rs0905

I have a checkbox control that stores in a table as a checkbox (y/n). When
queried, it returns 0 and -1. I need to include the result of this field in
a column in a listbox on a separate form. Instead of displaying as 0 and -1,
I need it to display in the listbox as Yes and No. How do I do this!

Thanks!
 
J

John W. Vinson/MVP

I have a checkbox control that stores in a table as a checkbox (y/n). When
queried, it returns 0 and -1. I need to include the result of this field in
a column in a listbox on a separate form. Instead of displaying as 0 and -1,
I need it to display in the listbox as Yes and No. How do I do this!

Thanks!

One way is to use the following listbox properties:

Control Source: <your yes/no field>
Row Source Type: Value List
Row Source: -1;"Yes";0,"No"
Column Count: 2
Column Widths: 0";0.25"
 

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