Using Crystal Reports 11.
I am attempting to add a report field into SQL Expression. I have already added the SQL expression field to my report to grab the data from the database which is as follows:
Field name = lastbatch
(select top 1
cus_name
from dbo.ppordfil_sql
where ppordfil_sql.item_no = 'TI032489IM'
order by entered_dt desc)
What I am trying to do is replace the item_no 'TI032489IM' with a report field such as "Field 7" from my report. I am unclear if I am even going about this the right way. Can someone point me in the right direction?
I am attempting to add a report field into SQL Expression. I have already added the SQL expression field to my report to grab the data from the database which is as follows:
Field name = lastbatch
(select top 1
cus_name
from dbo.ppordfil_sql
where ppordfil_sql.item_no = 'TI032489IM'
order by entered_dt desc)
What I am trying to do is replace the item_no 'TI032489IM' with a report field such as "Field 7" from my report. I am unclear if I am even going about this the right way. Can someone point me in the right direction?