Results 1 to 3 of 3
  1. #1
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727

    Turning negative number to positive


    Gm. Using access 2016. I need to change a field that has negative numbers to positive numbers. Is the best way to do this is to use abs? I don't want to receive mixed results. Is there another way to do this other than using absolute? ? Thanks

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,411
    abs returns all numbers as positive

    abs(1)=1
    abs(-1)=1

    what is your concern about mixed results? you either want all numbers to be positive or you don't

    If you want an alternative I guess you could use the iif function

    iif(mynum<0,mynum*-1,mynum)

  3. #3
    slimjen is offline Expert
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    727
    Just wanted to be consistent in the results. Thanks for responding

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 06-01-2013, 10:56 PM
  2. Converting negative number to positive using QBE??
    By shabbaranks in forum Queries
    Replies: 5
    Last Post: 03-23-2012, 08:57 AM
  3. Replies: 2
    Last Post: 11-22-2011, 11:45 AM
  4. Turning a Value into a positive
    By swagger18 in forum Programming
    Replies: 7
    Last Post: 01-25-2011, 09:42 AM
  5. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums