Difference

G

Guest

I have this code alread
If [Diff] >= 10 Then
[Amount Diff].Visible = True
Else
[Amount Diff].Visible = False
End If

how do I get it to work if is goes the other way.

I have a billed for amount and a total amount.
I then took the Diff of those. If it is a $10 diff in either direction I
want the Amount Diff visable. Right now I have it only +10
Thanks
 
G

Guest

Hi Chey,

Assuming [Diff] is a field you could try ...

If [Diff] >=10 or [Diff] <=10 then
[Amount Diff].visible = True
Else
[Amout Diff].visibile = False
Endif
 
G

Guest

I got it to work but I had to make it <=-10
Thanks

Chris said:
Hi Chey,

Assuming [Diff] is a field you could try ...

If [Diff] >=10 or [Diff] <=10 then
[Amount Diff].visible = True
Else
[Amout Diff].visibile = False
Endif
--
HTH

Chris


Chey said:
I have this code alread
If [Diff] >= 10 Then
[Amount Diff].Visible = True
Else
[Amount Diff].Visible = False
End If

how do I get it to work if is goes the other way.

I have a billed for amount and a total amount.
I then took the Diff of those. If it is a $10 diff in either direction I
want the Amount Diff visable. Right now I have it only +10
Thanks
 
D

Douglas J. Steele

If Abs([Diff]) >= 10 Then
[Amount Diff].Visible = True
Else
[Amount Diff].Visible = False
End If
 
G

Guest

Oops!!! My mistake. Douglas has an even neater solution than mine

Regards

Chris


Chey said:
I got it to work but I had to make it <=-10
Thanks

Chris said:
Hi Chey,

Assuming [Diff] is a field you could try ...

If [Diff] >=10 or [Diff] <=10 then
[Amount Diff].visible = True
Else
[Amout Diff].visibile = False
Endif
--
HTH

Chris


Chey said:
I have this code alread
If [Diff] >= 10 Then
[Amount Diff].Visible = True
Else
[Amount Diff].Visible = False
End If

how do I get it to work if is goes the other way.

I have a billed for amount and a total amount.
I then took the Diff of those. If it is a $10 diff in either direction I
want the Amount Diff visable. Right now I have it only +10
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top