I wanna call 'Message to Recipient' Value into my Report, already done if I create Bank Account in Last or First Record with FINDLAST or FINDFIRST. But if Bank Account Between G/L Account like the picture above its cannot show in report. The 'Message to Recipient' must be called from Account Type = 'Bank Account' no one else.
I have some code like this
IF (GenJnlLineFilter."Account Type" = GenJnlLineFilter."Account Type"::"Bank Account") THEN
Remarks := GenJnlLineFilter."Message to Recipient";
Remarks is my variable.
What's wrong with my code ? Thanks for advice