Obtaining a syntax error with the script below in MS access. Works fine without the second inner join. Any ideas?
SELECT
tblStudySetup.[Room Number],
qQC1A.[% of Hr Per Doc] AS [QC1A]
qQC1R.[% of Hr Per Doc] AS [QC1R]
FROM tblStudySetup
INNER JOIN (
SELECT tblStudySetup.[Room Number], tblMultipler.[% of Hr Per Doc]
FROM tblStudySetup LEFT JOIN tblMultipler
ON tblStudySetup.QC1AType = tblMultipler.Type
) AS qQC1A
ON tblStudySetup.[Room Number] = qQC1A.[Room Number]
INNER JOIN (
SELECT tblStudySetup.[Room Number], tblMultipler.[% of Hr Per Doc]
FROM tblStudySetup LEFT JOIN tblMultipler
ON tblStudySetup.QC1RType = tblMultipler.Type
) AS qQC1R
ON tblStudySetup.[Room Number] = qQC1R.[Room Number];
Table structure as follows
tblStudySetup: [Room Number], [QC1A], [QC1R]
tblMultipler: [Type], [% of Hr Per Doc]
So the tblStudySetup per room would have a multiplier type say "QC1A-default" which could be equal to a [% of Hr Per Doc] of say 20%. There are a few different types of multiplers.