This works:
SELECT [TBL_Shift pay].[Employee ID], [TBL_Shift pay].[Adjuster Name], [TBL ACR_RCM List].ACR, [TBL ACR_RCM List].RCM, [TBL ACR_RCM List].FCM, [TBL_Shift pay].[Earn Descr], [TBL_Shift pay].[Other Hours Sum], [TBL_Shift pay].[Pay End Dt], IIf(([TBL_Shift pay].[Earn Descr]<>"Shift Premium 15%"),[Other Hours Sum]*0.75,[Other Hours Sum]*0.15) AS [New Hours Calculation], IIf(([TBL_Shift pay].[Earn Descr]<>"Shift Premium 15%"),([Other Hours Sum]*0.75)+[TBL_Shift pay].[Other Hours Sum],([Other Hours Sum]*0.15)+[TBL_Shift pay].[Other Hours Sum]) AS [Sum Other & New]
FROM ([TBL HR Data] INNER JOIN ([TBL_Not eligible] RIGHT JOIN [TBL_Shift pay] ON [TBL_Not eligible].[Employee ID] = [TBL_Shift pay].[Employee ID]) ON [TBL HR Data].[Employee ID] = [TBL_Shift pay].[Employee ID]) INNER JOIN [TBL ACR_RCM List] ON [TBL HR Data].[Current Direct Mgr Name] = [TBL ACR_RCM List].[ACR Full Name]
WHERE ((([TBL_Shift pay].[Pay End Dt]) Between [start date] And [end date]));
Now I just want to add another inner join, but it gets rejected. I add
this (i don't have the final formula in there, I just want to see a number to test)
Switch([TBL_Hours Report].[Standard Hours]=20,20,[TBL_Hours Report].[Standard Hours]=30, 30, True, 0)AS Expr1
I need to put an INNER JOIN if for this, simply
INNER JOIN [TBL_Hours Report] ON [TBL HR Data].[Employee ID] = [TBL_Hours Report].[Employee ID]
It just blows up. Part of my quandry is ANSI SQL doesn't allow "join x on y on z towit (from above)
FROM
([TBL HR Data] INNER JOIN ([TBL_Not eligible] RIGHT JOIN [TBL_Shift pay] ON [TBL_Not eligible].[Employee ID] = [TBL_Shift pay].[Employee ID])
ON [TBL HR Data].[Employee ID] = [TBL_Shift pay].[Employee ID])
INNER JOIN [TBL ACR_RCM List] ON [TBL HR Data].[Current Direct Mgr Name] = [TBL ACR_RCM List].[ACR Full Name]
It won't take the inner join internally or before or after the last INNER JOIN. I tried re-writing it using "regular" ANSI but the Access engine won't run it!
Any help appreciated!