Hi,
I have two text boxes that contain two number values, "test1" and "test2".
I currently use the following code to check that the values match:
This works fine, however I want to be able to check they match "plus or minus a penny". For example:
Test1: 100.99
Test2: 100.98
Would produce a "correct" msg, but:
Test1: 100.99
Test2: 101.01
would produce a "incorrect" msg.
Does anyone know how to do this please as I can't find anything on google or here.
Thank you
Dean
I have two text boxes that contain two number values, "test1" and "test2".
I currently use the following code to check that the values match:
Code:
if test1=test2 then
msgbox "Correct"
else
msgbox "incorrect
This works fine, however I want to be able to check they match "plus or minus a penny". For example:
Test1: 100.99
Test2: 100.98
Would produce a "correct" msg, but:
Test1: 100.99
Test2: 101.01
would produce a "incorrect" msg.
Does anyone know how to do this please as I can't find anything on google or here.
Thank you
Dean