Hi,
I have a bit of a dilema, i think it should be really easy but i just can't seem to get my head around it.
I have a table VISIT_HEADER and this holds information about the VISIT i.e Charge Days and the Visit Type. Then i have an ASSESSOR_BOOKINGS table which holds the dates of the Visit and the Assessor doing the visit. A VISIT can actually have more than 1 physical visit hence the extra table.
So fo instance VISIT 0900112 is for 12 Chargeable days and will take place on the 01/06/2005-05/06/2005 and 11/06/2005-15/06/2005.
My problem is when the VISIT_HEADER contains more than 1 physical visit it messes up the group totals as the Charge Days are added for each detail line. I need to include ASSESSOR_BOOKINGS in the report as this is the only table which contains the dates.
for instance
Hope this makes sense and someone can help
Thanks
Deleco
I have a bit of a dilema, i think it should be really easy but i just can't seem to get my head around it.
I have a table VISIT_HEADER and this holds information about the VISIT i.e Charge Days and the Visit Type. Then i have an ASSESSOR_BOOKINGS table which holds the dates of the Visit and the Assessor doing the visit. A VISIT can actually have more than 1 physical visit hence the extra table.
So fo instance VISIT 0900112 is for 12 Chargeable days and will take place on the 01/06/2005-05/06/2005 and 11/06/2005-15/06/2005.
My problem is when the VISIT_HEADER contains more than 1 physical visit it messes up the group totals as the Charge Days are added for each detail line. I need to include ASSESSOR_BOOKINGS in the report as this is the only table which contains the dates.
for instance
Code:
Visit Num Assessor ChargeDays Date From Date To
0900023 Dean 4
01/06/2005 02/06/2005 11/06/2005 12/06/2005
Group Total 8 (I actually want this to be 4)
Hope this makes sense and someone can help
Thanks
Deleco