Hi Everybody .
I Design Report by Query Print layout Design , So when I run Report , I see Message : " Table not found Administrator (OA DM)" .
This is My Query .
( Note :this Query is run ok in Microsoft SQL . )
-
Select Cast(left([dbo].[Get_rate](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType),5) as nvarchar(50))+ Cast(T0.BatchNum as nvarchar(50))As No_Number , T0.TaxDate As Date , case left(T0.Account,4)when '1112'then '0.00' when '1122'then'0.00' else [dbo].[Get_11](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType)end as Amount1 , case left(T0.Account,4) when '1111'then '0.00' when '1121' then '0.00' else [dbo].[Get_111](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType) end As Amount2 , T1.U_VNS_MEMO As U_VNS_MEMO, T1.U_VNS_VNUMBER as PV_No , T1.U_VNS_JType as 'Voucher Type' , T0.Account As AC_Code , T3.AcctName as Description , T0.Debit As Debit ,T0.Credit As Credit , T1.U_VNS_NAME, T0.U_VNS_REMARKS From BTF1 T0 Inner Join OBTF T1 On T0.BatchNum = T1.BatchNum Inner Join OBTD T2 On T0.TransID = T2.BatchNum Inner Join OACT T3 On T0.Account = T3.AcctCode Where T0.BatchNum = '[%0]' Group by Cast(left([dbo].[Get_rate](T0.BatchNum,left(T0.Account,4),T1.U_VNS_JType),5) as nvarchar(50))+ Cast(T0.BatchNum as nvarchar(50)) , T0.TaxDate , case left(Account,4)when '1112' then '0.00' when '1122'then'0.00' else [dbo].[Get_11](T0.BatchNum,left(Account,4),T1.U_VNS_JType)end , case left(Account,4) when '1111'then '0.00' when '1121' then '0.00' else [dbo].[Get_111](T0.BatchNum,left(Account,4),T1.U_VNS_JType) end , U_VNS_MEMO , T1.U_VNS_VNUMBER , T1.U_VNS_JType , Account , AcctName , T1.U_VNS_NAME, T0.U_VNS_REMARKS order by Amount1 desc
---
Please help me .
Thank you very much .
Message was edited by:
Tran Ba Hai