i have the following table:
tblOnSiteCoaching : table *this is the main table
CoachingID *primary key
ImpAgency *implementing agency
TypeofTraining *type of training
ActualCost
tblAsstAgency : subtable *a subtable of the main table, allows multiple entry in datasheet form...
CoachingID *refers to the value in main table
AsstAgency *assisting Agency(ies)
in my query i have the following data:
CoachingID ImpAgency AsstAgency TypeofTraining ActualCost
1 DILG CCBRMO Technical 10,000.00
1 DILG RCBRMO Technical 10,000.00
1 DILG LGU Technical 10,000.00
2 DENR RCBRMO Institutional 15,000.00
2 DENR LGU Institutional 15,000.00
3 ERDB CCBRMO Technical 10,000.00
3 ERDB RCBRMO Technical 10,000.00
my problem is:
1) how can i make my report look like this:
ImpAgency AsstAgency TypeofTraining ActualCost
DILG CCBRMO Technical 10,000.00
RCBRMO
LGU
DENR RCBRMO Institutional 15,000.00
LGU
ERDB CCBRMO Technical 10,000.00
RCBRMO
2) how can i get the total/sum of ActualCost, counting the values with unique ID only. for example in #1, the total should be 35,000.00 but when i tried =Sum([ActualCost]) it addedd up all the values in the query, thus, giving me a value of 80,000.00
i need the solution to these problems really badly. i would appreciate any help you could give me! thank you in advance!
tblOnSiteCoaching : table *this is the main table
CoachingID *primary key
ImpAgency *implementing agency
TypeofTraining *type of training
ActualCost
tblAsstAgency : subtable *a subtable of the main table, allows multiple entry in datasheet form...
CoachingID *refers to the value in main table
AsstAgency *assisting Agency(ies)
in my query i have the following data:
CoachingID ImpAgency AsstAgency TypeofTraining ActualCost
1 DILG CCBRMO Technical 10,000.00
1 DILG RCBRMO Technical 10,000.00
1 DILG LGU Technical 10,000.00
2 DENR RCBRMO Institutional 15,000.00
2 DENR LGU Institutional 15,000.00
3 ERDB CCBRMO Technical 10,000.00
3 ERDB RCBRMO Technical 10,000.00
my problem is:
1) how can i make my report look like this:
ImpAgency AsstAgency TypeofTraining ActualCost
DILG CCBRMO Technical 10,000.00
RCBRMO
LGU
DENR RCBRMO Institutional 15,000.00
LGU
ERDB CCBRMO Technical 10,000.00
RCBRMO
2) how can i get the total/sum of ActualCost, counting the values with unique ID only. for example in #1, the total should be 35,000.00 but when i tried =Sum([ActualCost]) it addedd up all the values in the query, thus, giving me a value of 80,000.00
i need the solution to these problems really badly. i would appreciate any help you could give me! thank you in advance!