G
Guest
Hi,
I have three tables. One is called TherapistMain and has two fields:
TherapistName WeeklyTargetRevenue. I then have a WeeklyProductRevenue and a
WeeklyServiceRevenueTable. Both of these tables have the two fields which
include TherapistName and Revenue. There are frequent situtations where the
therapist will have only product revenue or only service revenue for a given
week. Most of the time they have both. However, the therapist will not
appear in the WeeklyProductRevenue table if they have no product revenue for
the week and they will not appear in the WeeklyServiceRevenue if they have
not service revenue for the week. I have created a query that links the
three together with outer joins. I selected TherapistName from the
TherapistMain so that it always appears and then have ProductRevenue and
ServiceRevenue. I then created a calculated field called Total which sums
the product and service revenue.
The problem is that if a therapist has not product revenue and does have
service revenue, or has product revenue but no service revenue, the total is
zero. In other words, a value for total will not appear unless there is both
product and service revenue. What I would like is for a value of zero to
appear in the blanks with a format of currency and then have the total appear
even if they have not product revenue for the week or service revenue for the
week. Can someone help?
Thanks,
Chuck W
I have three tables. One is called TherapistMain and has two fields:
TherapistName WeeklyTargetRevenue. I then have a WeeklyProductRevenue and a
WeeklyServiceRevenueTable. Both of these tables have the two fields which
include TherapistName and Revenue. There are frequent situtations where the
therapist will have only product revenue or only service revenue for a given
week. Most of the time they have both. However, the therapist will not
appear in the WeeklyProductRevenue table if they have no product revenue for
the week and they will not appear in the WeeklyServiceRevenue if they have
not service revenue for the week. I have created a query that links the
three together with outer joins. I selected TherapistName from the
TherapistMain so that it always appears and then have ProductRevenue and
ServiceRevenue. I then created a calculated field called Total which sums
the product and service revenue.
The problem is that if a therapist has not product revenue and does have
service revenue, or has product revenue but no service revenue, the total is
zero. In other words, a value for total will not appear unless there is both
product and service revenue. What I would like is for a value of zero to
appear in the blanks with a format of currency and then have the total appear
even if they have not product revenue for the week or service revenue for the
week. Can someone help?
Thanks,
Chuck W