J
JamesP via AccessMonster.com
If anyone could be kind enough to help.
I have the following T-SQL statement on Form Record Source:
SELECT CASE WHEN tbl.FinanceApp.FacilityTypeId = 1 THEN 0 ELSE
tblFinanceApp.TotalAmountToBeFinanced END AS SumTotalFinance,
tblFinanceApp.TotalAmountToBeFinanced AS Expr1,
tblFinanceApp.*, tblCustomers.CustomerName, tblSupplierTypes.SupplierType,
tblFinAppSubStatus.SubStatusDescription
FROM tblFinanceApp LEFT OUTER JOIN
tblCustomers ON tblFinanceApp.CustomerID = tblCustomers.
CustomerID LEFT OUTER JOIN
tblSupplierTypes ON tblFinanceApp.Source =
tblSupplierTypes.SupplierTypeId LEFT OUTER JOIN
tblFinAppSubStatus ON tblFinanceApp.FASubStatusId =
tblFinAppSubStatus.FASubStatusId
I do a Form Footer Sum on the SumTotalFinance which works fine, however as
soon as I apply a filter I get a #error.
If anyone has a solution that would solve this please let me know.
Kind Regards,
James.
I have the following T-SQL statement on Form Record Source:
SELECT CASE WHEN tbl.FinanceApp.FacilityTypeId = 1 THEN 0 ELSE
tblFinanceApp.TotalAmountToBeFinanced END AS SumTotalFinance,
tblFinanceApp.TotalAmountToBeFinanced AS Expr1,
tblFinanceApp.*, tblCustomers.CustomerName, tblSupplierTypes.SupplierType,
tblFinAppSubStatus.SubStatusDescription
FROM tblFinanceApp LEFT OUTER JOIN
tblCustomers ON tblFinanceApp.CustomerID = tblCustomers.
CustomerID LEFT OUTER JOIN
tblSupplierTypes ON tblFinanceApp.Source =
tblSupplierTypes.SupplierTypeId LEFT OUTER JOIN
tblFinAppSubStatus ON tblFinanceApp.FASubStatusId =
tblFinAppSubStatus.FASubStatusId
I do a Form Footer Sum on the SumTotalFinance which works fine, however as
soon as I apply a filter I get a #error.
If anyone has a solution that would solve this please let me know.
Kind Regards,
James.