Solved

Select Case ...End Select

Posted on 2002-06-19
1
127 Views
Last Modified: 2010-05-18
hi,

how to put statement with "Or" in select case block?

example:

Select Case a
  Case "1" Or "3" or "5"
    ....
  Case "2" or "4" or "6"
    ...
End Select


thanks.
0
Comment
Question by:icecool
1 Comment
 
LVL 2

Accepted Solution

by:
corvanderlinden earned 50 total points
ID: 7094940
select case a
case 1,2,3
case 10 to 100
case Is > 100

and so on

0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

808 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