PC Review


Reply
Thread Tools Rate Thread

-1 Return on my Reports

 
 
=?Utf-8?B?Um9uZGFk?=
Guest
Posts: n/a
 
      17th Feb 2006
How can I have the -1 on my reports to defalt to 1?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?U2hhcmtieXRl?=
Guest
Posts: n/a
 
      17th Feb 2006
The easy answer is use Absolute Value. However, after a quick help search, I
don't see any reference to setting the Absolute Value.

But you can do it through other code, as well. Try this:

IIF ([value1] < 0, ([value1] * -1), [value1])

That should accomplish the same thing.

HTH

Sharkbyte



"Rondad" wrote:

> How can I have the -1 on my reports to defalt to 1?

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      17th Feb 2006
On Fri, 17 Feb 2006 13:08:27 -0800, Sharkbyte wrote:

> The easy answer is use Absolute Value. However, after a quick help search, I
> don't see any reference to setting the Absolute Value.
>
> But you can do it through other code, as well. Try this:
>
> IIF ([value1] < 0, ([value1] * -1), [value1])
>
> That should accomplish the same thing.
>
> HTH
>
> Sharkbyte
>
> "Rondad" wrote:
>
>> How can I have the -1 on my reports to defalt to 1?


You need to look in VBA help, not Access help.
Open any code window and click on help.

ABS() is the absolute value function.

=ABS([FieldName])
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      17th Feb 2006
"Sharkbyte" <(E-Mail Removed)-> wrote in message
news:3301050A-4C6A-4F8F-B36E-(E-Mail Removed)
> The easy answer is use Absolute Value. However, after a quick help
> search, I don't see any reference to setting the Absolute Value.
>
> But you can do it through other code, as well. Try this:
>
> IIF ([value1] < 0, ([value1] * -1), [value1])
>
> That should accomplish the same thing.


There's a VBA Abs() function, which returns the absolute value of its
argument.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
=?Utf-8?B?Um9uZGFk?=
Guest
Posts: n/a
 
      17th Feb 2006
On my report where do I use the ABA Abs() function?

"Dirk Goldgar" wrote:

> "Sharkbyte" <(E-Mail Removed)-> wrote in message
> news:3301050A-4C6A-4F8F-B36E-(E-Mail Removed)
> > The easy answer is use Absolute Value. However, after a quick help
> > search, I don't see any reference to setting the Absolute Value.
> >
> > But you can do it through other code, as well. Try this:
> >
> > IIF ([value1] < 0, ([value1] * -1), [value1])
> >
> > That should accomplish the same thing.

>
> There's a VBA Abs() function, which returns the absolute value of its
> argument.
>
> --
> Dirk Goldgar, MS Access MVP
> www.datagnostics.com
>
> (please reply to the newsgroup)
>
>
>

 
Reply With Quote
 
Dirk Goldgar
Guest
Posts: n/a
 
      17th Feb 2006
"Rondad" <(E-Mail Removed)> wrote in message
news:CC85A97C-D6D9-4F4A-80F7-(E-Mail Removed)
> On my report where do I use the ABA Abs() function?


You haven't given enbough information to say, really. But probably you
would use it as an expression in the ControlSource of a text box. For
example,

=Abs([SomeField])

Note that the text box where you use an expression like this must not
have the same name as the field you are taking the absolute value of.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
=?Utf-8?B?Um9uZGFk?=
Guest
Posts: n/a
 
      21st Feb 2006
Thanks for your help...............perfect info.

"Rondad" wrote:

> How can I have the -1 on my reports to defalt to 1?

 
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
Reports return results after 15 mins! zufie Microsoft Access Queries 7 27th May 2009 08:55 PM
Carriage return in reports CM Microsoft Access VBA Modules 0 24th Apr 2008 03:24 PM
Carriage return in reports CM Microsoft Access VBA Modules 0 24th Apr 2008 03:23 PM
Carriage return in reports CM Microsoft Access 0 24th Apr 2008 03:09 PM
Why do reports in Access return more info than I want? =?Utf-8?B?U2hhbmE=?= Microsoft Access Reports 1 13th Dec 2005 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:17 AM.