D
doyle60
I have a query with a field that will return about 100 different color
names. But for some of the names I want it to translate it into
something else. Keeping in mind that there are 100 or so colors it
can return and I only want to change a few, how is this to be done?
So if it returns this:
Black
Blue
Grey
Heather Gray
Blue
Green
Yellow
Yellow
etc.
I want code to change it to:
Blk (was Black)
Blue
Grey
Grey (was Heather Gray)
Blue
Green
Yell (was Yellow)
Yell (was Yellow)
etc.
I could nest them (but that will get hairy with five items) or I could
write a translating table. But is there a way to use the Case in a
query, like in VBA?
Thanks,
Matt
names. But for some of the names I want it to translate it into
something else. Keeping in mind that there are 100 or so colors it
can return and I only want to change a few, how is this to be done?
So if it returns this:
Black
Blue
Grey
Heather Gray
Blue
Green
Yellow
Yellow
etc.
I want code to change it to:
Blk (was Black)
Blue
Grey
Grey (was Heather Gray)
Blue
Green
Yell (was Yellow)
Yell (was Yellow)
etc.
I could nest them (but that will get hairy with five items) or I could
write a translating table. But is there a way to use the Case in a
query, like in VBA?
Thanks,
Matt