W
wmdmurphy
I have the following query in my app, and hoped to see 10 rows for each
project in the query results since I'm doing a left join on
tbl_TitlesToIncludeInReports and since this table has 10 title records.
The summary query qry_BudgetsForSelectedBudgetYear contains anywhere from 2
to 10 records within each project that match rows in
tbl_TitlesToIncludeInReports.
The query results only include the rows from
qry_BudgetsForSelectedBudgetYear that match rows in the table, as if it was
an equal join.
SELECT qry_BudgetsForSelectedBudgetYear.BudgetYear,
qry_BudgetsForSelectedBudgetYear.ProjectName,
tbl_TitlesToIncludeInReports.TitleName,
qry_BudgetsForSelectedBudgetYear.SumOfAllocation AS Allocation,
tbl_TitlesToIncludeInReports.SortOrderInReports
FROM tbl_TitlesToIncludeInReports LEFT JOIN qry_BudgetsForSelectedBudgetYear
ON tbl_TitlesToIncludeInReports.TitleName =
qry_BudgetsForSelectedBudgetYear.JobTitle
ORDER BY qry_BudgetsForSelectedBudgetYear.ProjectName,
tbl_TitlesToIncludeInReports.SortOrderInReports;
Any help will be appreciated.
Bill
project in the query results since I'm doing a left join on
tbl_TitlesToIncludeInReports and since this table has 10 title records.
The summary query qry_BudgetsForSelectedBudgetYear contains anywhere from 2
to 10 records within each project that match rows in
tbl_TitlesToIncludeInReports.
The query results only include the rows from
qry_BudgetsForSelectedBudgetYear that match rows in the table, as if it was
an equal join.
SELECT qry_BudgetsForSelectedBudgetYear.BudgetYear,
qry_BudgetsForSelectedBudgetYear.ProjectName,
tbl_TitlesToIncludeInReports.TitleName,
qry_BudgetsForSelectedBudgetYear.SumOfAllocation AS Allocation,
tbl_TitlesToIncludeInReports.SortOrderInReports
FROM tbl_TitlesToIncludeInReports LEFT JOIN qry_BudgetsForSelectedBudgetYear
ON tbl_TitlesToIncludeInReports.TitleName =
qry_BudgetsForSelectedBudgetYear.JobTitle
ORDER BY qry_BudgetsForSelectedBudgetYear.ProjectName,
tbl_TitlesToIncludeInReports.SortOrderInReports;
Any help will be appreciated.
Bill