Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Using an "Or" Statment

Posted on 2009-05-05
3
Medium Priority
?
242 Views
Last Modified: 2013-11-27
Source: IIf([Account]=15190 Or 5190,"CAP",(IIf([Account]=73090 0r 3090,"EXP","ERROR")))

I am not sure if I need to add more If statments, or if I am putting the 'or' in a werid spot???!?!?
0
Comment
Question by:SueMos
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Chuck Wood earned 2000 total points
ID: 24306159
I think this is what you are trying for:

IIf(([Account]=15190 Or [Account]=5190),"CAP",IIf(([Account]=73090 0r [Account]=3090),"EXP","ERROR"))

Open in new window

0
 

Author Comment

by:SueMos
ID: 24306210
I knew it was some little thing!! Thanks!

Source: IIf(([Account]=15190 Or [Account]=5190),"CAP",IIf(([Account]=73090 Or [Account]=3090),"EXP","ERROR"))

Open in new window

0
 
LVL 16

Expert Comment

by:Chuck Wood
ID: 24306223
You're welcome. Good luck with your project.
0

Featured Post

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

721 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