Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    kd2017 is offline Well, I tried at least.
    Windows 10 Access 2016
    Join Date
    Jul 2017
    Posts
    1,142
    I had a chance to briefly test my code from post #2. It appears to work as you requested *if* you had nulls instead of -1... dare I suggest running an update query to change your -1's to nulls? Maybe a bad idea since I have no clue what this even is or what the rest of your app looks like... I'll bow out now though, Ajax is the vip!

  2. #17
    mikesal57 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    48
    Sorry gentlemen....

    A little off....

    CODE

    result: Abs([nPP1SHF] Is Not Null And Nz([nPP1SHF])<=Nz([nPP2SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP3SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP4SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP5SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP6SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP7SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP8SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP9SHF],[nPP1SHF]) And Nz([nPP1SHF])<=Nz([nPP0SHF],[nPP1SHF]) And (Nz([nPP2SHF])+Nz([nPP3SHF])+Nz([nPP4SHF])+Nz([nPP5SHF])+Nz([nPP6SHF])+Nz([nPP7SHF])+Nz([nPP8SHF])+Nz([nPP9SHF])+Nz([nPP0SHF])<>0

    Click image for larger version. 

Name:	1.JPG 
Views:	12 
Size:	281.7 KB 
ID:	46436

    Both these circled ....the 1 should be zero and the zero should be 1

  3. #18
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    A little off....

    do you not read your posts? - see #13 and #9

  4. #19
    mikesal57 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2021
    Posts
    48
    My fault, doing too much....

    It worked ....

    thank you guys

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. If statement comparing 2 values
    By Ekhart in forum Programming
    Replies: 3
    Last Post: 09-15-2016, 11:16 AM
  2. Replies: 3
    Last Post: 02-16-2016, 03:10 PM
  3. Replies: 1
    Last Post: 11-11-2015, 04:25 PM
  4. Comparing positive to negative values.
    By rubberducky in forum Access
    Replies: 1
    Last Post: 01-20-2014, 04:44 PM
  5. Access-comparing Dates
    By espinosaja in forum Access
    Replies: 7
    Last Post: 12-03-2011, 01:14 AM

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