I have a database for converting settlement instruction formats between one system and another. When this was created for me, one of the columns that I needed to be in the query was not included. The table was created from an imported Excel file which is how the report is run. I need to have a formula where if the value in a column called PAY_INDICATOR is an "T" then to return the value in a column called PAY_ACCRU, if the PAY _INDICATOR column has an "O", then return the value that is in column PAY_BEN_PARTY. Otherwise, if there are no values provided in either of the columns the query would search depending on if we have a P or a Q, columns: (PAY_ACCRU or PAY_BEN_PARTY), then return the value "NULL". We have the below formula in the query already, however when we run the query it does not display the results or the column at all.
ULTBEN_ADD_LINE1(T58/T59): Iif([Banks_Comparison_Results].[Pay_Indicator]="T",[Banks_Comparison_Results].[PAY_ACCOUNT],[PAY_BEN_PARTY])
I dont see the criteria where if the value in column PAY_INDICATOR is an "O" how this is evaluated, or if no values are present in both columns display the word "NULL" Any help would be very appreciated! Thanks