Hello,
I have a situation as follows.
1. There is field called Project ID which has several Resource categories. Each Resource category has either few amounts of money in different categories or it does not have any amount of money.
2. I am pulling out a report which shows the data related to the resource categories for a specific project ID.
3. My problem is it does not show the resource categories which do not have any data in. Suppose ProjectID: 12ABC1234 has 4 Resource Categories,
RC1: 1A1, it has related data
RC2: 2B2, it has related data
RC3: 3C3, there is nothing associated with category
RC4: 4E4, there is nothing associated with category
My question is how can I show RC3 and RC 4 in my report with the data rows saying N/A or $0??
Thanks.
The query I am currently using is
I have a situation as follows.
1. There is field called Project ID which has several Resource categories. Each Resource category has either few amounts of money in different categories or it does not have any amount of money.
2. I am pulling out a report which shows the data related to the resource categories for a specific project ID.
3. My problem is it does not show the resource categories which do not have any data in. Suppose ProjectID: 12ABC1234 has 4 Resource Categories,
RC1: 1A1, it has related data
RC2: 2B2, it has related data
RC3: 3C3, there is nothing associated with category
RC4: 4E4, there is nothing associated with category
My question is how can I show RC3 and RC 4 in my report with the data rows saying N/A or $0??
Thanks.
The query I am currently using is
Code:
SELECT lkptbl_ProjectID.ProjectID, Draws.[Grant/Budget Index], Draws.DrawDate, lkptbl_ResourceCategory.ResourceCategory, Budget.[federal calculated total] AS AuthorizedBudgetCoastal, Sum([match calculated total]+[other calculated total]) AS AuthorizedBudgetMatch, Draws.DrawTotalFed AS CurrentDrawCoastal, Draws.DrawTotalMatch AS CurrentDrawMatch, lkptbl_ResourceCategory.ResourceCategoryID, [Grant Information].[data entry date] FROM lkptbl_ResourceCategory INNER JOIN (lkptbl_ProjectID INNER JOIN ((([Grant Information] LEFT JOIN Budget ON [Grant Information].[Grant Index] = Budget.[Grant/Budget Index]) INNER JOIN qryDrawsTotal ON [Grant Information].[Grant Index] = qryDrawsTotal.[Grant/Budget Index]) LEFT JOIN Draws ON [Grant Information].[Grant Index] = Draws.[Grant/Budget Index]) ON lkptbl_ProjectID.ProjectID_ID = [Grant Information].ProjectID_ID) ON lkptbl_ResourceCategory.ResourceCategoryID = [Grant Information].ResourceCategoryID GROUP BY lkptbl_ProjectID.ProjectID, Draws.[Grant/Budget Index], Draws.DrawDate, lkptbl_ResourceCategory.ResourceCategory, Budget.[federal calculated total], Draws.DrawTotalFed, Draws.DrawTotalMatch, lkptbl_ResourceCategory.ResourceCategoryID, lkptbl_ProjectID.ProjectID_ID, [Grant Information].[data entry date] HAVING (((lkptbl_ResourceCategory.ResourceCategoryID)=[forms]![frmSearchFinancialRpt]![cmbResourceCat]) AND (([Grant Information].[data entry date]) Between [forms]![frmSearchFinancialRpt]![txtStartDate] And [forms]![frmSearchFinancialRpt]![txtEndDate])) OR (((lkptbl_ProjectID.ProjectID_ID)=[forms]![frmSearchFinancialRpt]![cmbProjectID])) ORDER BY Draws.DrawDate;
Comment