Hi all,
I am new to Crystal report. Here is my question.
I have a report that has two tables added but there is no direct links between these two tables(table_1 and table_2). In record selection formula, search criteria is used for select records from table_1.
Most of the field objects in the report uses either database fields or formula fields that are related to table_1. Except one field (field_ex) in the report need to to pull out data from table_2.
I wrote a formula for that field like this:
if ({table_2.name}='John Doe' and {table_2.reg_date}=date(2003,11,01)) then
table_2.price
else
0
There is a record in the database matched the codition.
However I got 0s for all the rows in the report. Could you give me some hint?
Thanks very much!
I am new to Crystal report. Here is my question.
I have a report that has two tables added but there is no direct links between these two tables(table_1 and table_2). In record selection formula, search criteria is used for select records from table_1.
Most of the field objects in the report uses either database fields or formula fields that are related to table_1. Except one field (field_ex) in the report need to to pull out data from table_2.
I wrote a formula for that field like this:
if ({table_2.name}='John Doe' and {table_2.reg_date}=date(2003,11,01)) then
table_2.price
else
0
There is a record in the database matched the codition.
However I got 0s for all the rows in the report. Could you give me some hint?
Thanks very much!