R
Robert McClain
I'm using Microsoft Access 2002 and have a query that
looks at field Q33_INSURANCE and populates the new field
(Health Insurance Provider) based on the data within
Q33_INSURANCE. I knew that there might be a limitation on
the complexity of the expression, but was wondering if
there is another way to go about this. Below if the
expression that I'm using in the query:
Health Insurance Provider: IIf([Q33_INSURANCE]
="01","None - Do not have health insurance",IIf
([Q33_INSURANCE]="02","Do not know",IIf([Q33_INSURANCE]
="04","Access",IIf([Q33_INSURANCE]="05","Aetna/US
Healthcare",IIf([Q33_INSURANCE]="06","Gateway",IIf
([Q33_INSURANCE]="07","Health America/Health
Assurance",IIf([Q33_INSURANCE]="08","Highmark/Blue
Cross/Blue Shield",IIf([Q33_INSURANCE]="09","Keystone",IIf
([Q33_INSURANCE]="10", "Medicare/Medicaid",IIf
([Q33_INSURANCE]="11", "Self",IIf([Q33_INSURANCE]
="12", "UPMC",IIf([Q33_INSURANCE]="13", "VA", IIf
([Q33_INSURANCE]="14", "HMO", IIf([Q33_INSURANCE]
="15", "Commercial", IIf([Q33_INSURANCE]
="16", "Other", "Invalid Health Insurance Provider
Code"))))))))))))
Thanks for any help in advance!
looks at field Q33_INSURANCE and populates the new field
(Health Insurance Provider) based on the data within
Q33_INSURANCE. I knew that there might be a limitation on
the complexity of the expression, but was wondering if
there is another way to go about this. Below if the
expression that I'm using in the query:
Health Insurance Provider: IIf([Q33_INSURANCE]
="01","None - Do not have health insurance",IIf
([Q33_INSURANCE]="02","Do not know",IIf([Q33_INSURANCE]
="04","Access",IIf([Q33_INSURANCE]="05","Aetna/US
Healthcare",IIf([Q33_INSURANCE]="06","Gateway",IIf
([Q33_INSURANCE]="07","Health America/Health
Assurance",IIf([Q33_INSURANCE]="08","Highmark/Blue
Cross/Blue Shield",IIf([Q33_INSURANCE]="09","Keystone",IIf
([Q33_INSURANCE]="10", "Medicare/Medicaid",IIf
([Q33_INSURANCE]="11", "Self",IIf([Q33_INSURANCE]
="12", "UPMC",IIf([Q33_INSURANCE]="13", "VA", IIf
([Q33_INSURANCE]="14", "HMO", IIf([Q33_INSURANCE]
="15", "Commercial", IIf([Q33_INSURANCE]
="16", "Other", "Invalid Health Insurance Provider
Code"))))))))))))
Thanks for any help in advance!