Results 1 to 5 of 5
  1. #1
    roem01 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    May 2015
    Posts
    3

    Access query will not find the correct negative % numbers to be able to delete


    When I run a query on the Percent Correct column in an Access 2013 for numbers less than 20% (-20) I get the results in Fig 1. I am only getting 6 results of negative numbers when there should be 113 negative numbers. What is causing this?

    Fig 1
    OverUnitCount PercentCorrectUnitsToFills
    92 -537.5
    13 -423.785714
    16 -109.791667
    14229 -41.728477
    14229 -41.728477
    65170 -29.97315


    I need the results to look like Fig 2 and find all of the numbers. My goal is to create a delete query that deletes all number greater than minus 20.00%, i.e. – 21.00, -30.00% etc. What criteria should I use for this field to find the correct numbers. I am not using SQL phrases, just design view.

    Fig 2

    OverUnitCount PercentCorrectUnitsToFills
    3718 -616.26%
    293 -200.50%
    43 -134.88%
    8082 -114.50%
    6678 -102.66%
    11196 -99.95%
    2745 -92.27%
    408 -66.69%
    295 -61.84%
    155 -55.74%
    182 -54.21%
    659 -46.75%
    7411 -40.75%

    Thanks for your help

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Would have to review the data and query structure.

    How will this be useful in a DELETE action?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    roem01 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    May 2015
    Posts
    3
    I have uploaded the Access file to review and this is just a query to test that the information I want will appear in the query result. I will then create a delete query from this to delete the information in the table after appending more data weekly. The query information is in the last field named "PercentCorrectUnitsToFills". The problem is finding the information of negative numbers less than -20%. (such -37%, -40%, etc.)
    Attached Files Attached Files

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    The field is a Double number type. It is formatted to display as percentage but the actual data is decimal. -46.7463% is really -0.467463. Try criteria: -0.2

    I never set formatting in tables.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    roem01 is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    May 2015
    Posts
    3
    That worked! Thanks for your help.

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

Similar Threads

  1. Replies: 1
    Last Post: 10-22-2014, 01:28 PM
  2. need help with formatting negative numbers
    By orientalmed in forum Access
    Replies: 3
    Last Post: 03-06-2013, 01:24 PM
  3. Replies: 2
    Last Post: 01-24-2012, 02:16 PM
  4. Sum Negative Numbers In Colum
    By geraldselectric in forum Access
    Replies: 1
    Last Post: 01-16-2012, 03:42 PM
  5. Replies: 9
    Last Post: 06-26-2011, 09:14 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