checkbox value as numeric

G

Guest

On the report's detail area I inserted a text box to show the value of a
checkbox (i.e., 1 instead of Y, 0 instead of N). However, for Y I get -1 and
the ABS doesn't correct the error. What can anyone suggest?
 
R

Rick Brandt

Robbie said:
On the report's detail area I inserted a text box to show the value
of a checkbox (i.e., 1 instead of Y, 0 instead of N). However, for Y
I get -1 and the ABS doesn't correct the error. What can anyone
suggest?

For the Format property of that TextBox enter...

;"1";"0"

With the above method you can make a Yes/No display any text you like for True
and for False. The leading semi-colon is required.
 
D

Douglas J. Steele

How are you using Abs? It definitely should change -1 to 1: that's its
purpose.
 
G

Guest

Douglas:

=Abs([YesNoField])

I thought so too. It works good with headers/footers but for details it
errors.
 
G

Guest

Thank you Rick, it worked fine.

Rick Brandt said:
For the Format property of that TextBox enter...

;"1";"0"

With the above method you can make a Yes/No display any text you like for True
and for False. The leading semi-colon is required.
 

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