G
Guest
hi,
I have the following query:
SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedDt,
Format(Sum(tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.[CountOfLoan Acct #]),"#,###.#") AS [SumOfCountOfLoan Acct #], "line2" AS line
FROM tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY
WHERE
(((tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus)
Is Not Null And
(tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus)
Like IIf([forms]![frm_criteria]![tester1] Like "[a-z]*","*" &
[forms]![frm_criteria]![tester1] & "*","*")))
GROUP BY
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedDt,
IIf([forms]![frm_criteria]![tester1] Like "[a-z]*","all
resolved",[ResolvedStatus]);
I would like to change the first column to something like:
if a form field has a value:
SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
....
but if the form field is null:
SELECT "all resolved" AS ResolvedStatus,...
How can I change my query so that the first column in the select statement
depends on whethr or not there is a value in the form's field?
Thanks ni advance,
geebee
I have the following query:
SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedDt,
Format(Sum(tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.[CountOfLoan Acct #]),"#,###.#") AS [SumOfCountOfLoan Acct #], "line2" AS line
FROM tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY
WHERE
(((tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus)
Is Not Null And
(tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus)
Like IIf([forms]![frm_criteria]![tester1] Like "[a-z]*","*" &
[forms]![frm_criteria]![tester1] & "*","*")))
GROUP BY
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedDt,
IIf([forms]![frm_criteria]![tester1] Like "[a-z]*","all
resolved",[ResolvedStatus]);
I would like to change the first column to something like:
if a form field has a value:
SELECT
tbl_CACS_activity_by_resolvedstatusandcontactcode_DPD130JULY.ResolvedStatus,
....
but if the form field is null:
SELECT "all resolved" AS ResolvedStatus,...
How can I change my query so that the first column in the select statement
depends on whethr or not there is a value in the form's field?
Thanks ni advance,
geebee