I am using Crystal 9 and SQL Server 2000.
I have report that until this week has been working fine for months. Just ran it fine last Tuesday. For some reason, today, when it is run there is a SQL Expression that returns the following error:
Error in compiling SQL Expression Query Engine Error 42000 The column prefix 'LOANHIST' does not match with a table name or alias name in a query.
Here is the SQL Expression
(select sum(b.prin_bal_p)
from balhist b
where exists (select *
from loanhist l2
where l2.accounting_date = b.accounting_date and
{fn LEFT(l2.loan_name,{fn LENGTH(l2.loan_name)}-8)} = {fn LEFT(LOANHIST."LOAN_NAME",{fn LENGTH(LOANHIST."LOAN_NAME")}-8)} and
l2.loan = b.loan) and
b.accounting_date = PORTHIST."ACCOUNTING_DATE")
I have not idea why there is an issue all of a sudden AND LOANHIST is a table be used. When I did a test getting rid of the line with the LOANHIST table I get the same error for PORTHIST.
This is the most bizarre thing and I have to get this resolved sooner than ASAP. I have no time to create a view.
Any suggestions.
Thanks
I have report that until this week has been working fine for months. Just ran it fine last Tuesday. For some reason, today, when it is run there is a SQL Expression that returns the following error:
Error in compiling SQL Expression Query Engine Error 42000 The column prefix 'LOANHIST' does not match with a table name or alias name in a query.
Here is the SQL Expression
(select sum(b.prin_bal_p)
from balhist b
where exists (select *
from loanhist l2
where l2.accounting_date = b.accounting_date and
{fn LEFT(l2.loan_name,{fn LENGTH(l2.loan_name)}-8)} = {fn LEFT(LOANHIST."LOAN_NAME",{fn LENGTH(LOANHIST."LOAN_NAME")}-8)} and
l2.loan = b.loan) and
b.accounting_date = PORTHIST."ACCOUNTING_DATE")
I have not idea why there is an issue all of a sudden AND LOANHIST is a table be used. When I did a test getting rid of the line with the LOANHIST table I get the same error for PORTHIST.
This is the most bizarre thing and I have to get this resolved sooner than ASAP. I have no time to create a view.
Any suggestions.
Thanks