Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with a formula 2

Status
Not open for further replies.

cyreports

Programmer
May 12, 2010
89
US
I need help with a formula.

I would like to set ado.rvufee equal to 20% of its normal value if {ado.Mod1}, {ado.Mod2},{ado.Mod3} or {ado.Mod4} equals 80.
 
if
{ado.Mod1} = 80 or
{ado.Mod2} = 80 or
{ado.Mod3} = 80 or
{ado.Mod4} = 80 then
.2*{ado.rvufee} else
{ado.rvufee}

-LB
 
Hi,
If I understand the issue then try
Code:
If
(
{ado.Mod1} = 80
OR
{ado.Mod2} = 80
OR
{ado.Mod3} = 80
OR
 {ado.Mod4} = 80
)
Then
ado.rvufee * .20
ELSE
ado.rvufee

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Wow, thank you for the speedy response. It tells me a string is required here and highlights the first 80. Should I enclose it in ' ' or " " ?
 
Enclose all the 80's in either single or double quotes.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top