Here is the entire SQL. I need to convert the null values in the 1502 field
so I can calculate 86% of that and add it to the others and subtract it from
the Total_202_1416_1701to get the total CO_WL. I hope this makes sense since
i'm a novice user being asked to design a complex database. Thanks for help.
SELECT [06CO_Minus_GSwrk_Crosstab].FIPS_NUM, [06CO_Minus_GSwrk_Crosstab].CT,
[06CO_Minus_GSwrk_Crosstab].CTY_NAME, [06CO_Minus_GSwrk_Crosstab].[Total Of
Actual_workdays_06], FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab.
[101], [101]*0.764 AS 764percentof101,
FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab.[102], [102]*0.745
AS 745percentof102, FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab.
[111], [111]*0.959 AS 959percentof111, (Nz(Sum(1502),0)) AS 1502, [1502]*0.86
AS 86percentof1502, [06Total_202's_1416's_1701's_Query].Total_202_1416_1701,
Round(([Total Of Actual_workdays_06]+[764percentof101]+[745percentof102]+
[959percentof111]+[86percentof1502])-([2110]))-([Total_202_1416_1701]) AS
CO_WL
FROM [06Total_202's_1416's_1701's_Query] INNER JOIN
(FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab INNER JOIN
06CO_Minus_GSwrk_Crosstab ON
FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab.FIPS_NUM =
[06CO_Minus_GSwrk_Crosstab].FIPS_NUM) ON ([06Total_202's_1416's_1701's_Query].
FIPS_NUM = FLP_Admin06_wrkitm_101_102_111_1502_CountyQuery_Crosstab.FIPS_NUM)
AND ([06Total_202's_1416's_1701's_Query].FIPS_NUM =
[06CO_Minus_GSwrk_Crosstab].FIPS_NUM);
John said:
POST the ENTIRE SQL statement please.
What you have posted so far is fragments of the SQL statement.
Hint: Open the query, switch to SQL view (View: SQL) and copy and paste the
statement that is there.
Sorry I was wrong earlier. The Field heading is
Totalof101_102_111_1502_Estworkdays_07: Est_workdays_07 and I need to
[quoted text clipped - 13 lines]