Hi all, using CR 10...
Details of report:
Group #1 Header
details line (usually 2 detail lines, either a "I" or "R" req. mode)
Group #1 Footer (has some calculations)
I have a formula in details (@curmi) that does this:
It basically takes the MONTH of a req. date if the req. mode = "I". These tables are within the detail. I can either have a "I" value, or a "R" value in the req. mode.
What I need to do is use the "I" mode MONTH (what @curmi returns) in Group #1 Footer for a calculation.
Problem is: I usually have an "I", then a "R" in the detail line. So, for example, in the first detail line ("I") @curmi = 01 , then in the 2nd detail line ("R") = 0 because it doesn't meet the IF statment in the formula.
What can I do to get the first detail line MONTH (01 in the example) for a calculation in the footer?
Can I store it in some variable? Can I hold that MONTH through the details until it changes again by another ("I") detail line?
I hope this makes sense! Thank you for any help provided...
Details of report:
Group #1 Header
details line (usually 2 detail lines, either a "I" or "R" req. mode)
Group #1 Footer (has some calculations)
I have a formula in details (@curmi) that does this:
Code:
if {ET_REQ_HISTORY_HEADER_MC.Requisition_Mode} = "I" then
month({ET_REQ_HISTORY_HEADER_MC.Requisition_Date})
It basically takes the MONTH of a req. date if the req. mode = "I". These tables are within the detail. I can either have a "I" value, or a "R" value in the req. mode.
What I need to do is use the "I" mode MONTH (what @curmi returns) in Group #1 Footer for a calculation.
Problem is: I usually have an "I", then a "R" in the detail line. So, for example, in the first detail line ("I") @curmi = 01 , then in the 2nd detail line ("R") = 0 because it doesn't meet the IF statment in the formula.
What can I do to get the first detail line MONTH (01 in the example) for a calculation in the footer?
Can I store it in some variable? Can I hold that MONTH through the details until it changes again by another ("I") detail line?
I hope this makes sense! Thank you for any help provided...