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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

changing the value of a formula field

Status
Not open for further replies.

ABetha

Programmer
Jul 14, 2010
35
US
this is the formula I have

if {@DuplicateRep 2} = 1 and {@Hours } >0 then
{@Hours } = 0
else
{@Hours } = 1

This is the contents of {@DuplicateRep 2}
if {@DupSummary} = "dup" then
formula = 1
else
formula = 0
end if

THis is the contents of the {@Hours }
if val({vSerialNo_Operation})>= 1 then
formula = 0
else
formula = 1
end if

if the record is a duplicate(equal to 1) I want to set the hours value to zero
 
Just change {@hours} formula as a nested if

if {@DuplicateRep 2} = 1 then
(if val({vSerialNo_Operation})>= 1 then
formula = 0
else
formula = 1)
else 0

Ian
 
I get a message saying A summary has been specified on a non-recurring field Details: @Hours
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top