On the Project Cost History Report we have an invoice field in which we want to navigate to either the AP invoice or AR invoice depending on the transaction. Trying to do an IF statement =IIf([PMTran.TranType]='AP',[APTran.RefNbr],[ARTran.RefNbr]) but no matter what the hyperlink only works and navigates to the invoice that is the True part of the statement.
If I have AP ref nbr mentioned in true part it successfully navigates to the invoice when you select the hyperlink in the report. When selecting a AR line it does not navigate to it:
'object reference not set to an instance of an object’