G
geebee
hi,
I have the following query:
SELECT Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Sum(Tbl_CACS_calls_between_popenterdt_and_resolveddt.[COUNT( * )]) AS
[SumOfCOUNT( * )], "line1" AS line
FROM Tbl_Resolved INNER JOIN
Tbl_CACS_calls_between_popenterdt_and_resolveddt ON Tbl_Resolved.[Loan Acct
#] = Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#))
UNION ALL SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedDt,
Sum(tbl_CACS_activity_by_resolvedstatusandcontactcode.[CountOfLoan Acct #])
AS [SumOfCountOfLoan Acct #],
"line2" AS line
FROM tbl_CACS_activity_by_resolvedstatusandcontactcode
WHERE (((tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus)
Like "curr_pd*"))
GROUP BY tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedDt
UNION ALL
SELECT Tbl_Resolved.ResolvedStatus,
Tbl_Resolved.ResolvedDt,
Count(Tbl_Resolved.[Loan Acct #]) AS [CountOfLoan Acct #],
"line3" as line
FROM Tbl_Resolved LEFT JOIN Tbl_CACS_calls_between_popenterdt_and_resolveddt
ON Tbl_Resolved.[Loan Acct #] =
Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#) AND
((Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]) Is Null))
UNION ALL
SELECT DISTINCT
Tbl_Resolved.ResolvedStatus,
Tbl_Resolved.ResolvedDt,
Avg([resolveddt]-[popenterdt]) AS days,
"line4" AS line
FROM Tbl_Resolved
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Tbl_Resolved.ResolvedStatus
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#))
UNION ALL SELECT [1calltotals2].ResolvedStatus, [1calltotals2].ResolvedDt,
[1calltotals2].average_no_calls_to_be_resolved,
"line5" as line
FROM 1calltotals2;
I am trying to format the following so that only one decimal place is shown.
Currently there are 3 or 4 decimal places:
1. Avg([resolveddt]-[popenterdt]) AS days
2. [1calltotals2].average_no_calls_to_be_resolved
With Union queries, you cant go to the design view. I can only view in SQL
view, so I am not sure how I can change the formatting of these numbers to
show only 1 decimal place.
How can I do this?
Thanks in advance,
geebee
I have the following query:
SELECT Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Sum(Tbl_CACS_calls_between_popenterdt_and_resolveddt.[COUNT( * )]) AS
[SumOfCOUNT( * )], "line1" AS line
FROM Tbl_Resolved INNER JOIN
Tbl_CACS_calls_between_popenterdt_and_resolveddt ON Tbl_Resolved.[Loan Acct
#] = Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#))
UNION ALL SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedDt,
Sum(tbl_CACS_activity_by_resolvedstatusandcontactcode.[CountOfLoan Acct #])
AS [SumOfCountOfLoan Acct #],
"line2" AS line
FROM tbl_CACS_activity_by_resolvedstatusandcontactcode
WHERE (((tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus)
Like "curr_pd*"))
GROUP BY tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode.ResolvedDt
UNION ALL
SELECT Tbl_Resolved.ResolvedStatus,
Tbl_Resolved.ResolvedDt,
Count(Tbl_Resolved.[Loan Acct #]) AS [CountOfLoan Acct #],
"line3" as line
FROM Tbl_Resolved LEFT JOIN Tbl_CACS_calls_between_popenterdt_and_resolveddt
ON Tbl_Resolved.[Loan Acct #] =
Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#) AND
((Tbl_CACS_calls_between_popenterdt_and_resolveddt.[Loan Acct #]) Is Null))
UNION ALL
SELECT DISTINCT
Tbl_Resolved.ResolvedStatus,
Tbl_Resolved.ResolvedDt,
Avg([resolveddt]-[popenterdt]) AS days,
"line4" AS line
FROM Tbl_Resolved
GROUP BY Tbl_Resolved.ResolvedStatus, Tbl_Resolved.ResolvedDt,
Tbl_Resolved.ResolvedStatus
HAVING (((Tbl_Resolved.ResolvedStatus) Like "curr_pd*") AND
((Tbl_Resolved.ResolvedDt) Between #6/1/2006# And #6/30/2006#))
UNION ALL SELECT [1calltotals2].ResolvedStatus, [1calltotals2].ResolvedDt,
[1calltotals2].average_no_calls_to_be_resolved,
"line5" as line
FROM 1calltotals2;
I am trying to format the following so that only one decimal place is shown.
Currently there are 3 or 4 decimal places:
1. Avg([resolveddt]-[popenterdt]) AS days
2. [1calltotals2].average_no_calls_to_be_resolved
With Union queries, you cant go to the design view. I can only view in SQL
view, so I am not sure how I can change the formatting of these numbers to
show only 1 decimal place.
How can I do this?
Thanks in advance,
geebee