That cries out for a translation table - Two Columns
StudentType and CampusName
One record for each abbreviation and campus name
Then you join the the translation table to your table in the query on
the StudentType fields and get the associated campus name.
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
Telesphore wrote:
Here it is:
=Switch(
[StudentType]="CB";"Campus Belgium";
[StudentType]="CF";"Campus Farel";
[StudentType]="CT";"Campus Tahiti";
.
)
It seems I'll need to use a Function like Select Case, but how would be
the code.
Thanks again
"Jeff Boyce" <
[email protected]> a écrit dans le message de
If you'll offer more specific description of what you're using Switch
to accomplish, folks here may be able to offer more specific
suggestions...
Regards
Jeff Boyce
Microsoft Office/Access MVP
In my case, the Switch fonction in the source control of a textbox
accepted only 15 arguments. At the 16th, Access says "Too complex
expression."
Suggestions for a workaround?
Thank you in advance.