Solved

Like Statementm, Switch

Posted on 2013-01-21
2
189 Views
Last Modified: 2013-01-21
How can I modify this SWITCH statement to show "Below Investment Grade, Highly Speculative" for any data entered like this:
B1
B2
B3
basically a numerical modifier at the end.

I dont think I can use
[MoodyRating] like "B*"  because I a user could enter only a Baa or Ba.  

I have not copied the entire switch statement but only a bit of it:

=Switch([MoodyRating]="Baa","Investment Grade, but lower end",
[MoodyRating]="Ba1","Speculative, substantial Credit Risk",
[MoodyRating] = "B1", "Below Investment Grade, Highly Speculative")

Hope that makes sense.
0
Comment
Question by:pdvsa
2 Comments
 
LVL 29

Accepted Solution

by:
IrogSinta earned 500 total points
ID: 38802492
[MoodyRating] Like "B[0-9]", "Below Investment Grade, Highly Speculative"
0
 

Author Closing Comment

by:pdvsa
ID: 38802532
very nice.  Worked perfectly.  Thank you
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question