Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple case statements 1

Status
Not open for further replies.

yeltom

Programmer
Sep 17, 2001
62
US
Hello all. I am trying to use 3 case statements to evaluate 3 fields in a table. If any one of the fields contains a case value then count it for the text value. I can get values for the first field but do not know the syntax to add the second and third fields to the same formula can someone help?

CASE Satisq_ER."Q3"
When 1 THEN 'Physician'
When 2 THEN 'Convenient'
When 3 then 'Family/Freind Rec.'
When 4 then 'Care Better'
When 5 then 'Insurance'
When 6 then 'Cost Lower'
When 7 then 'Only Hospital in Area'
When 8 then 'Other'
END;
CASE Satisq_ER."Q3"
When 1 THEN 'Physician'
When 2 THEN 'Convenient'
When 3 then 'Family/Freind Rec.'
When 4 then 'Care Better'
When 5 then 'Insurance'
When 6 then 'Cost Lower'
When 7 then 'Only Hospital in Area'
When 8 then 'Other'
END
 
Can you simply put brackets round each case and add together?

Eg.

(Case... End) +","+ (Case... End) +","+ (Case... End)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top