= Subtotal (+/- 1)?

JCross

Registered User.
Local time
Today, 16:09
Joined
Feb 28, 2002
Messages
116
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
 
If (Me![Subtotal] + 1 = Me![Total]) Or (Me![Subtotal] - 1 = Me![Total]) Then....
 
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).]
 
If ABS(Me![Total] - Me![Subtotal])<=1 Then....
 
Travis,

Works perfectly. Thank you.

Jennifer
 

Users who are viewing this thread

Back
Top Bottom