TKaisierBHG
New member
- Local time
- Today, 13:31
- Joined
- Jul 3, 2023
- Messages
- 8
Okay, I am going to do my best to try and explain this,
So I have built a crosstab Query. The Row headings being ModelID and FindingLevel, the Column heading being FindingCategory. I have the cross tab counting the number of each finding category at the specified level, and then a total for each ModelID. That all works fine and does what I need it to. What I am attempting to do now is attach a weight to the FindingCategorys. To achieve this I have tried to use iif statements.
IIf([FindingCategory]="ModelSpecification",2, iif([FindingCategory]="ModelAssumptionLimitation",1, iif([FindingCategory]="ModelTesting",3, iif([FindingCategory]="ModelImplementation",5, iif([FindingCategory]="OngoingMonitoring",4, iif([FindingCategory]="RegulatoryCompliancePolicy",5, iif([FindingCategory]="ModelControls",4)))))))
but when I add it to the criteria field I get a "Data type mismatch error". I am very new to Access so any advice or help is greatly appreciated.
So I have built a crosstab Query. The Row headings being ModelID and FindingLevel, the Column heading being FindingCategory. I have the cross tab counting the number of each finding category at the specified level, and then a total for each ModelID. That all works fine and does what I need it to. What I am attempting to do now is attach a weight to the FindingCategorys. To achieve this I have tried to use iif statements.
IIf([FindingCategory]="ModelSpecification",2, iif([FindingCategory]="ModelAssumptionLimitation",1, iif([FindingCategory]="ModelTesting",3, iif([FindingCategory]="ModelImplementation",5, iif([FindingCategory]="OngoingMonitoring",4, iif([FindingCategory]="RegulatoryCompliancePolicy",5, iif([FindingCategory]="ModelControls",4)))))))
but when I add it to the criteria field I get a "Data type mismatch error". I am very new to Access so any advice or help is greatly appreciated.
Last edited: