Okay, figured that out...
Now I have the query, but it still only returns the records that are linked
to in Table B.
SELECT
IIf([tblEstimateDetail].[ED_Primavera_ID] Is Not
Null,[PD_ActivityID],[PD_ActivityID]) AS ACT,
(I want this field to always be the same.)
IIf([tblEstimateDetail].[ED_Primavera_ID] Is Not
Null,[tblEstimateDetail].[ED_Title],[tblPrimaveraDetail].[PD_ActivityDescription]) AS TITLE,
IIf([tblEstimateDetail].[ED_Primavera_ID] Is Not
Null,[ED_Qty],[PD_BudgetQuantity]) AS BQ,
IIf([tblEstimateDetail].[ED_Primavera_ID] Is Not
Null,[ED_LaborUnitRate],[PD_BudgetCost]) AS BC,
IIf([tblEstimateDetail].[ED_Primavera_ID] Is Not
Null,[Rate_Desc],[PD_Resource]) AS RES
(Yes there is a third table, so that if there is a link, the data comes from
Table C instead of Tables A or B. Is this messing me up?)
FROM (tblEstimateDetail INNER JOIN tblPrimaveraDetail ON
tblEstimateDetail.ED_Primavera_ID = tblPrimaveraDetail.PD_ActivityID) INNER
JOIN tblLaborRates ON tblEstimateDetail.ED_Rate_ID = tblLaborRates.Rate_ID
WHERE
(((tblPrimaveraDetail.PD_UProj_ID)=[forms]![frmProjectMain]![txtUProj_ID]));
Thanks!
Dustin