PC Review


Reply
Thread Tools Rate Thread

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

 
 
=?Utf-8?B?V2F5bmUgVmlsZXM=?=
Guest
Posts: n/a
 
      14th Nov 2006
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?
 
Reply With Quote
 
 
 
 
Brendan Reynolds
Guest
Posts: n/a
 
      14th Nov 2006
Use the Abs function ...

Abs([Field]) * 65

--
Brendan Reynolds
Access MVP


"Wayne Viles" <(E-Mail Removed)> wrote in message
news:9277AEEF-EE59-47DB-A394-(E-Mail Removed)...
>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?



 
Reply With Quote
 
=?Utf-8?B?V2F5bmUgVmlsZXM=?=
Guest
Posts: n/a
 
      14th Nov 2006
Brilliant - many thanks

"Brendan Reynolds" wrote:

> Use the Abs function ...
>
> Abs([Field]) * 65
>
> --
> Brendan Reynolds
> Access MVP
>
>
> "Wayne Viles" <(E-Mail Removed)> wrote in message
> news:9277AEEF-EE59-47DB-A394-(E-Mail Removed)...
> >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?

>
>
>

 
Reply With Quote
 
John Vinson
Guest
Posts: n/a
 
      14th Nov 2006
On Tue, 14 Nov 2006 00:20:02 -0800, Wayne Viles
<(E-Mail Removed)> wrote:

>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]

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting based on Current Record [field] minus PreviousRecord [field] jhalstead85@gmail.com Microsoft Access Form Coding 2 8th Jan 2009 05:29 PM
Save a calculated field in a query back to a field in the table. =?Utf-8?B?QmlsbA==?= Microsoft Access Forms 1 9th Mar 2007 05:56 PM
Using the result of a calculated field in another calculated field's expression Paul Microsoft Access 1 12th Jan 2007 09:52 AM
Using the result of a calculated field in another calculated field's expression Paul Microsoft Access Queries 3 11th Jan 2007 04:53 PM
Criteria on field calculated form another calculated field Max Moor Microsoft Access Queries 1 22nd Dec 2004 08:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:43 PM.