yes/no boxes from table become 0s and -1s in Labels

G

Guest

I have mutliple fields as check boxes in my access database. When I try to
make labels of these records these fields show up as 0s and -1s on the label.
I would like to know whow to create a label where the data comes across as
yes and no.
 
G

Guest

When you create your query - try using an immediate if statement. Something
like the following where [Checkboxfield]=the name of your field in [].

IIf([checkboxfield]=true,"Yes","No")

This should convert a true value to "Yes" and a false value to "No".

Hope that helps
 
G

Guest

I typed this exactly in the querey criteria, and it would not proceed. I am
not unfortunately very familiar with the SQL code. Is there somthing
obviously wrong with the following? (Active is the name of this particualr
field)

IIf([Active]=true,"Yes","No")
 
J

Jason Lepack

It shouldn't be typed in the Criteria row, it should be typed in the
Field row.

Cheers,
Jason Lepack
 
G

Guest

That did it!! Thank you. I was able to customize them even further with
that formula. That is great.

Jason Lepack said:
It shouldn't be typed in the Criteria row, it should be typed in the
Field row.

Cheers,
Jason Lepack

I typed this exactly in the querey criteria, and it would not proceed. I am
not unfortunately very familiar with the SQL code. Is there somthing
obviously wrong with the following? (Active is the name of this particualr
field)

IIf([Active]=true,"Yes","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

Top