Get a Listbox to display yes/no values

guamlet

Board Regular
Joined
Dec 29, 2002
Messages
145
I have a 10 column listbox that is in a subform. The listbox is linked to a query that has mostly numeric fields, but also a few yes/no fields in the forms of checkboxes. The listbox is currently returning "-1" for a checked box (meaning "True") and "0" for an unchecked box (meaning "False"). Is there a way to get the listbox to display either "Yes" or "No" instead for these columns while leaving the other columns formatted the way they are? I'd even settle for "True" or "False"...just anything other than "-1" and "0".

Thanks!
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Thanks! I had that at first, but put the -1 in quotes which of course didn't work so I thought I had the whole thing wrong....stupid syntax...haha
 
Upvote 0

Forum statistics

Threads
1,215,684
Messages
6,126,199
Members
449,298
Latest member
Jest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top