Solved

Like Statementm, Switch

Posted on 2013-01-21
2
166 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now