How do i say work out the difference between two numbers say 15 and 5 and how do i then say only do something if it returns a positive value?<BR><BR>Thanks for help as always
If (Number1 - Number2) > 0 Then<BR> ...<BR>End If<BR><BR>Craig.
if you want if 0 then <BR>If (Number1 - Number2) >= 0 Then
Technically it's neither positive or negative, as positive numbers are defined as being greater than zero, and negative as less than zero.<BR><BR>But you're right. In this case, he may want positive or zero.<BR><BR>Craig.