Problem with Switch

skwilliams

Registered User.
Local time
Today, 12:26
Joined
Jan 18, 2002
Messages
516
I've been trying to get this switch working for a while now. I keep getting the error "The expression you entered contains invalid syntax, or you need to enclose your text data in quotes".

Code:
Prt: Switch([Cat]="ABB" And [ABBSam]="-1","Yes") , ([Cat]="Brett" And [BrettSam]="-1", "Yes") , ([Cat]="CTS" And [CTSSam]="-1","Yes") , ([Cat]="EG" And [EGSam]="-1","Yes") , ([Cat]="Eimicke" And [EimickeSam]="-1","Yes") , ([Cat]="HC" And [HCSam]="-1","Yes") , ([Cat]="LM" And [LMSam]="-1","Yes") , ([Cat]="MCP" And [MCPSam]="-1","Yes") , ([Cat]="STH" And [STHSam]="-1","Yes")

Am I missing a string without quotes or something? I'm just not seeing it.
Perhaps a set of fresh eyes will help.

Thanks.
 

Users who are viewing this thread

Back
Top Bottom