Hi, this is my first posting...be gentle.
I'm having difficulties getting my report to select from the multiple details records from a secondary table. Here's an example of the table layout
table1 table2
ID1 detaila
detailb
detailc
Now, the selection of data from table2 is contingent upon the value found in a corresponding column
table2
column1 detaila detailb detailc
column2 red blue green
if table2.column2 = red then
table2.column1 else
if table2.column2 = blue then
table2.column1 else
if table2.column2 = green then
table2.column1
else ""
My problem is getting the code to print a preferrence of the above. In most cases only one of the above would be true but in several cases two of the above is true and I want the first condition to print.
I've tried setting up variables to capture this data and setting those to null when false. I've also tried having each of these conditions evaluated one after the other. Bottom line...still ain't working.
Any suggestions?
I'm having difficulties getting my report to select from the multiple details records from a secondary table. Here's an example of the table layout
table1 table2
ID1 detaila
detailb
detailc
Now, the selection of data from table2 is contingent upon the value found in a corresponding column
table2
column1 detaila detailb detailc
column2 red blue green
if table2.column2 = red then
table2.column1 else
if table2.column2 = blue then
table2.column1 else
if table2.column2 = green then
table2.column1
else ""
My problem is getting the code to print a preferrence of the above. In most cases only one of the above would be true but in several cases two of the above is true and I want the first condition to print.
I've tried setting up variables to capture this data and setting those to null when false. I've also tried having each of these conditions evaluated one after the other. Bottom line...still ain't working.
Any suggestions?