Results 1 to 5 of 5
  1. #1
    5 Star Lounger
    Join Date
    Jan 2005
    Posts
    614
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Negative *-1 = Positive not always helps (Access 2003)

    Good Monday everyone!
    I have revenue numbers as negative numbers. Client wants to see positive numbers. If I will *-1 - I well get occasional positive numbers turn into unwanted negatives.
    How to avoid it?
    Thanks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Negative *-1 = Positive not always helps (Access 2003)

    You can use the Abs function in a query or in an expression. Abs([FieldName]) will return values greater than or equal to 0.

    Abs(-3) = 3
    Abs(0) = 0
    Abs(5) = 5

  3. #3
    5 Star Lounger
    Join Date
    Jan 2005
    Posts
    614
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Negative *-1 = Positive not always helps (Access 2003)

    I have mostly negative but few positive numbers. So how Abs will take care of positives?

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Negative *-1 = Positive not always helps (Access 2003)

    Please read my previous reply carefully.

  5. #5
    5 Star Lounger
    Join Date
    Jan 2005
    Posts
    614
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Negative *-1 = Positive not always helps (Access 2003)

    Ofcourse you were right as always, THANKS!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •