I don't use a calculated column when defining another calculated column. You
use [Initial Stand Paid] to calculate [Initial Stand Outstanding] .
..
--
Duane Hookom
MS Access MVP
SHeila D said:
Tried formatting suggestion but made no difference. Definitely right
aligned - if it helps SQL is as follows:
SELECT T_Invoices.[Event Code], T_Invoices.[Type of Sale], [T_Payment
Schedule].[Invoice ID], [T_Company Details].[Company Name],
T_Invoices.[Contract Signed and Returned], T_Invoices.[Stand Hall/Number],
[Stand Height]*[Stand Width] AS [Size], T_Invoices.[Price per Square Metre],
T_Invoices.[Net Cost] AS [100% Stand Rental], [Net Cost]*0.1 AS [Initial
Stand Due], IIf([SUmofAmount Paid]>[Initial Stand Due],[Initial Stand
Due],[SumofAmount Paid]) AS [Initial Stand Paid], [Initial Stand
Due]-[Initial Stand Paid] AS [Initial Stand Outstanding], Max([T_Payment
Schedule].[Service Charge Paid]) AS [MaxOfService Charge Paid],
[MaxofService Charge]-[MaxofService Charge Paid] AS [Service Charge
Outstanding], Max([T_Payment Schedule].[Service Charge]) AS [MaxOfService
Charge], [SumofAmount Paid] AS [Total Stand Revenue Paid], [Net
Cost]-[SumofAmount Paid] AS [Total Stand Revenue Outstanding], [Total Stand
Revenue Outstanding]+[Service Charge Outstanding] AS [Total Balance
Outstanding], Min([T_Payment Schedule].[Invoice Cancelled]) AS [MinOfInvoice
Cancelled], T_Invoices.[Stand Height], T_Invoices.[Stand Width],
T_Invoices.[Net Cost], Sum([T_Payment Schedule].[Amount Paid]) AS
[SumOfAmount Paid], T_Invoices.[Sales Person], T_Invoices.[Stand Type]
FROM ([T_Company Details] INNER JOIN [T_Contact Details] ON [T_Company
Details].[Company Code] = [T_Contact Details].[Company Code]) INNER JOIN
(T_Invoices INNER JOIN [T_Payment Schedule] ON T_Invoices.[Invoice ID] =
[T_Payment Schedule].[Invoice ID]) ON [T_Contact Details].[COntact Code] =
T_Invoices.[Contact Code]
GROUP BY T_Invoices.[Event Code], T_Invoices.[Type of Sale], [T_Payment
Schedule].[Invoice ID], [T_Company Details].[Company Name],
T_Invoices.[Contract Signed and Returned], T_Invoices.[Stand Hall/Number],
T_Invoices.[Price per Square Metre], T_Invoices.[Net Cost],
T_Invoices.[Stand Height], T_Invoices.[Stand Width], T_Invoices.[Sales
Person], T_Invoices.[Stand Type]
HAVING (((T_Invoices.[Event Code]) Not Like "BASE") AND ((T_Invoices.[Type
of Sale])="EXHIBITION STAND"));
2 fields that are giving me the problem are [Initial Stand Outstanding] and [MaxofService Charge Paid]
Thanks for your help
Sheila