springwood01
Technical User
Have 423 records that needed to determine if they were 0%, 50% or 100% compliant to established criteria. Have this figured out based on a positive entry of their account # in one of the 3 columns. Need to have a report like this that either shows yes when a account# appears or an X. Tried to play with some IIF statements but could not get them to populate for the subsequent report. Below the report sample is my SQL. Any ideas on how to do this?
ActiveContractNum 0% 50% 100%
######## YES
######## YES
######## YES
######## YES
This is my SQL:
SELECT TestAutocamSubs.CONTRACT_NUM, TestAutocamSubs.ActiveContractNum, TestAutocamSubs.Employee, [Test 0% Compliance].[0%Contract#], [Test 50% Comp].[50%Contract#], [Test 100% compliance].[100%Contract#]
FROM [Test 100% compliance] RIGHT JOIN ([Test 0% Compliance] RIGHT JOIN ([Test 50% Comp] RIGHT JOIN TestAutocamSubs ON [Test 50% Comp].[50%Contract#] = TestAutocamSubs.CONTRACT_NUM) ON [Test 0% Compliance].[0%Contract#] = TestAutocamSubs.CONTRACT_NUM) ON [Test 100% compliance].[100%Contract#] = TestAutocamSubs.CONTRACT_NUM
ORDER BY TestAutocamSubs.Employee;
ActiveContractNum 0% 50% 100%
######## YES
######## YES
######## YES
######## YES
This is my SQL:
SELECT TestAutocamSubs.CONTRACT_NUM, TestAutocamSubs.ActiveContractNum, TestAutocamSubs.Employee, [Test 0% Compliance].[0%Contract#], [Test 50% Comp].[50%Contract#], [Test 100% compliance].[100%Contract#]
FROM [Test 100% compliance] RIGHT JOIN ([Test 0% Compliance] RIGHT JOIN ([Test 50% Comp] RIGHT JOIN TestAutocamSubs ON [Test 50% Comp].[50%Contract#] = TestAutocamSubs.CONTRACT_NUM) ON [Test 0% Compliance].[0%Contract#] = TestAutocamSubs.CONTRACT_NUM) ON [Test 100% compliance].[100%Contract#] = TestAutocamSubs.CONTRACT_NUM
ORDER BY TestAutocamSubs.Employee;