Solved

Using an "Or" Statment

Posted on 2009-05-05
3
211 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
  • 2
3 Comments
 
LVL 16

Accepted Solution

by:
Chuck Wood earned 500 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

914 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

17 Experts available now in Live!

Get 1:1 Help Now