Solved

How do you put a criteria to say  1thru10 in a IIF statement

Posted on 2013-06-21
2
446 Views
Last Modified: 2013-06-21
I have a number field called Production. I have alot of production numbers.


I thought this code was working but I noticed that all the production numbers are
using the false code. Is there any way I can say 1thru10(example) in the code instead of typing in all the numbers. I know it is a little over one thousand chracters can be used.

Is this even possible? I tried using Between AND but I kept getting a error message that (operater missing)

, IIf([Production]=343-346 Or [Production]=347-374 Or [Production]=379-380 Or [Production]=391-403 Or [Production]=405-407 Or [Production]=409-410 Or [Production]=412-422 Or [Production]=424-428 Or [Production]=432-464 Or [Production]=467 Or [Production]=471-507 Or [Production]=524-536,
Format(Abs(([F]![Induction]*6+[F]![TearDown]*10+[F]![Provision]*10+[F]![AssemblyA]*10+[F]![AsemblyB]*10+[F]![AssemblyC]*10+[F]![AssemblyD]*10+
[OutDuction]*10)/100),"00.0%")) AS Percentages
FROM tblTempleFacilityFullup AS F;
0
Comment
Question by:gigifarrow
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 39267001
yes you can use between, here is the format

 IIf([Production] Between 343 and 346 Or [Production] Between 347 and 374 Or ..
0
 

Author Comment

by:gigifarrow
ID: 39267035
Thank you,

 that works I was using [Production] = Between 347 and 374 thats why mind wasnt working
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Sql query for filter 12 23
Multiple queries for a form 14 22
add more styles to my code 2 19
Update in Sql 7 12
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

746 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

13 Experts available now in Live!

Get 1:1 Help Now