Solved

Like Statementm, Switch

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Exporting from Access 2016 to a CSV file 4 48
DateAdd every year from Jun 3 24
Access/Visual Basic Question 3 24
Access 2016 - combo box 3 16
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…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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