Solved

Using an "Or" Statment

Posted on 2009-05-05
3
201 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
Comment Utility
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
Comment Utility
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
Comment Utility
You're welcome. Good luck with your project.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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.

772 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

9 Experts available now in Live!

Get 1:1 Help Now