J JCross Registered User. Local time Today, 16:09 Joined Feb 28, 2002 Messages 116 Apr 12, 2002 #1 I have a subtotal that needs to be within 1 of my Total. Right now I have an If statement with subtotal = total but how do I change this to allow for an error of 1? Thank you! Jennifer
I have a subtotal that needs to be within 1 of my Total. Right now I have an If statement with subtotal = total but how do I change this to allow for an error of 1? Thank you! Jennifer
J Jack Cowley Registered User. Local time Today, 16:09 Joined Aug 7, 2000 Messages 2,636 Apr 12, 2002 #2 If (Me![Subtotal] + 1 = Me![Total]) Or (Me![Subtotal] - 1 = Me![Total]) Then....
J JCross Registered User. Local time Today, 16:09 Joined Feb 28, 2002 Messages 116 Apr 12, 2002 #3 Thank you, Jack.........but what if I want it anywhere in that range? The subtotal can be anywhere from = to 1 over or under, including fractions. Is there a way to do that? jennifer [This message has been edited by JCross (edited 04-12-2002).]
Thank you, Jack.........but what if I want it anywhere in that range? The subtotal can be anywhere from = to 1 over or under, including fractions. Is there a way to do that? jennifer [This message has been edited by JCross (edited 04-12-2002).]
Travis Registered User. Local time Today, 08:09 Joined Dec 17, 1999 Messages 1,332 Apr 12, 2002 #4 If ABS(Me![Total] - Me![Subtotal])<=1 Then....
J JCross Registered User. Local time Today, 16:09 Joined Feb 28, 2002 Messages 116 Apr 12, 2002 #5 Travis, Works perfectly. Thank you. Jennifer