In a calculated field eg [Field]*65, I always get a minus answer!

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a look up text check box field - Yes or No. I try to create a
calculated field using this field use [Field]*65 and always get a minus
answer. How can I change this to a positive?
 
Brilliant - many thanks

Brendan Reynolds said:
Use the Abs function ...

Abs([Field]) * 65

--
Brendan Reynolds
Access MVP


Wayne Viles said:
I have a look up text check box field - Yes or No. I try to create a
calculated field using this field use [Field]*65 and always get a minus
answer. How can I change this to a positive?
 
I have a look up text check box field - Yes or No. I try to create a
calculated field using this field use [Field]*65 and always get a minus
answer. How can I change this to a positive?

A checkbox (yes/no field) is stored as -1 for True, 0 for False. It
seems rather strange to multiply 65 by True - but if you want the
answer to come out as either 65 or 0, simply use

-[Field] * 65

with the minus sign.

John W. Vinson[MVP]
 

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