AnsweredAssumed Answered

"hide Object when" not working with 'GetNthRecord'

Question asked by J.M.Schomburg on Feb 10, 2015
Latest reply on Feb 11, 2015 by philmodjunk

Title

"hide Object when" not working with 'GetNthRecord'

Post

I'm going slightly mad here (again), and apologies if I'm overlooking something obvious.

I'm trying to hide (show, actually, but for simplicity...) a layout object, but only if a same field in its previous record (above) is empty. I use the phrase:

GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1) = ""

and even 

IsEmpty(GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1))

or I even tried

GetNthRecord ( TargetTable::TargetField; Get ( RecordNumber ) - 1) = TargetTable::TargetField

...to no avail. Yet I see many other examples of GetNthRecord being used in this way.

Am I missing something obvious?

Thanks, best,

Josef.

Outcomes