Display listbox value from checkbox as x for example if the value is -1

  • Thread starter Thread starter Rino
  • Start date Start date
R

Rino

Greetings,

Is there someone who could help with following problem?
Currently, the listbox is returning checkbox values either 0 or -1. Is
it possible to instead return values as x if is -1 and nothing if is 0.
Just to display it this way.
Could this be done?

Thank you in advance.

-Rino
 
Alternatively :-

Assuming the list box is based on a query you could enter the following in
the Field: box in place of your field name :-

XX: IIf([Your Field Name]=True,"X","")

where XX is just a name for the column and 'Your Field Name' is the name of
the Yes/No field.

If you want to show a tick instead of an X you could use the code below -

XX: IIf([Your Field Name]=True,ChrW(8730),"")

assuming that character code 8730 for the font used on the list box is
Square Root character. I don't know of any font that has a proper tick
character.
 
Guys,

thanks to the both of you I made this thing work. I trully appriciate
your help.

Cheers,

-Rino
 

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

Back
Top