T
thegetch1
Hi,
I have 3 tables.
Project - pk = Intake ID
Project Resources = pk = Intake ID, Resource ID, Resource Name
Resources - pk = Resource ID
Project Resources is the composite of the other two.
My problem is that when I run a report based on a query that is to
select everything from all the tables, the report only returns projects
that have resources. i.e. If there are no resources assigned to the
project, it doesn't show up. This is a problem because there is a lot
of data other than the resources that need to be reported on.
Query code:
SELECT
[IPS Projects].[IPS Intake ID], [IPS Projects].[Project Name], [IPS
Projects].[Project Code #], [IPS Projects].[Mantis Ticket #], [IPS
Projects].[Registration Type], [IPS Projects].Status, [IPS
Projects].[Program Name], [IPS Projects].[Program #], [IPS
Projects].[Service Request Type], [IPS Projects].[Project Sponsor],
[IPS Projects].[Sponsor Department], [IPS Projects].[Customer Name],
[IPS Projects].[PM Name], [IPS Projects].[RFS Completed (Charter)?],
[IPS Projects].[Project Assessment Checklist Completed?], [IPS
Projects].[Registered with IPS?], [IPS Projects].[Registered as an
Exception?], [IPS Projects].[Emergency Registration Requested], [IPS
Projects].[IPS Triage Completed], [IPS Projects].[Scheduled for IPS
Intake Meeting], [IPS Projects].[Date scheduled for IPS Intake
Meeting], [IPS Projects].[Project Approved for RCS Completion], [IPS
Projects].[Department Responsible for IRC], [IPS Projects].[IPS
Planning Coordinator], [IPS Projects].[RCS Target Date], [IPS
Projects].[Phase of Project], [IPS Projects].[Implementation Date],
[IPS Projects].[Infrastructure Project Manager Assigned], [IPS
Projects].[RCS - Delivery Date], [IPS Projects].[Infrastructure Stage
Gate 1 Complete], [IPS Projects].[IPS Intake Completed], [IPS
Projects].[All Resources Assigned?], [IPS Projects].[All Resource names
are in PlanIT], [IPS Projects].Comments, Resources.[Resource Service],
[Project Resources].[Resource Name]
FROM Resources INNER JOIN ([IPS Projects] INNER JOIN [Project
Resources] ON [IPS Projects].[IPS Intake ID] = [Project Resources].[IPS
Intake ID]) ON Resources.[Resource ID] = [Project Resources].[Resource
ID]
WHERE ((([IPS Projects].[Project Name])=[Forms]![Project
Lookup]![projLookupCombo]));
Except for the numerous fields, it should be a pretty simple query. Any
thoughts?
Getch
I have 3 tables.
Project - pk = Intake ID
Project Resources = pk = Intake ID, Resource ID, Resource Name
Resources - pk = Resource ID
Project Resources is the composite of the other two.
My problem is that when I run a report based on a query that is to
select everything from all the tables, the report only returns projects
that have resources. i.e. If there are no resources assigned to the
project, it doesn't show up. This is a problem because there is a lot
of data other than the resources that need to be reported on.
Query code:
SELECT
[IPS Projects].[IPS Intake ID], [IPS Projects].[Project Name], [IPS
Projects].[Project Code #], [IPS Projects].[Mantis Ticket #], [IPS
Projects].[Registration Type], [IPS Projects].Status, [IPS
Projects].[Program Name], [IPS Projects].[Program #], [IPS
Projects].[Service Request Type], [IPS Projects].[Project Sponsor],
[IPS Projects].[Sponsor Department], [IPS Projects].[Customer Name],
[IPS Projects].[PM Name], [IPS Projects].[RFS Completed (Charter)?],
[IPS Projects].[Project Assessment Checklist Completed?], [IPS
Projects].[Registered with IPS?], [IPS Projects].[Registered as an
Exception?], [IPS Projects].[Emergency Registration Requested], [IPS
Projects].[IPS Triage Completed], [IPS Projects].[Scheduled for IPS
Intake Meeting], [IPS Projects].[Date scheduled for IPS Intake
Meeting], [IPS Projects].[Project Approved for RCS Completion], [IPS
Projects].[Department Responsible for IRC], [IPS Projects].[IPS
Planning Coordinator], [IPS Projects].[RCS Target Date], [IPS
Projects].[Phase of Project], [IPS Projects].[Implementation Date],
[IPS Projects].[Infrastructure Project Manager Assigned], [IPS
Projects].[RCS - Delivery Date], [IPS Projects].[Infrastructure Stage
Gate 1 Complete], [IPS Projects].[IPS Intake Completed], [IPS
Projects].[All Resources Assigned?], [IPS Projects].[All Resource names
are in PlanIT], [IPS Projects].Comments, Resources.[Resource Service],
[Project Resources].[Resource Name]
FROM Resources INNER JOIN ([IPS Projects] INNER JOIN [Project
Resources] ON [IPS Projects].[IPS Intake ID] = [Project Resources].[IPS
Intake ID]) ON Resources.[Resource ID] = [Project Resources].[Resource
ID]
WHERE ((([IPS Projects].[Project Name])=[Forms]![Project
Lookup]![projLookupCombo]));
Except for the numerous fields, it should be a pretty simple query. Any
thoughts?
Getch