473,379 Members | 1,544 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

IIF Statement followed by Calculation

3
I have attempted a few times using various form of IF statement to do following the calculation in Access 2007:

Inventory Position: (IIf([Remaining Days Before Parts Available]>[the Days before Fulfillment],[On Hand Inventory],[On-Hand Plus Pipeline])-[Unfulfilled Qty])

However it didn't work. Does anyone know how I should correct this calculation? Thanks!
May 29 '12 #1
5 1871
dsatino
393 256MB
IIf([Remaining Days Before Parts Available]>[the Days before Fulfillment],[On Hand Inventory],[On-Hand Plus Pipeline]-[Unfulfilled Qty])
May 29 '12 #2
Rabbit
12,516 Expert Mod 8TB
What do you mean by it doesn't work?
May 29 '12 #3
unagi
3
dsatino-Thank you for statement. Sorry that I didn't clarify the equation. What I try to calculate is if [Remaining Days before Parts Available] > [the Days before Fulfillment], the the inventory position will equal to [On Hand Inventory]- [Unfulfilled Qty]; If [Remaining....] <[the Days before...], inventory position will equal to [On-Hand Plus Pipeline]-[Unfulfilled Inventory].
May 29 '12 #4
unagi
3
Rabbie- The result was blank and I'm sure which part of the statement is wrong.
May 29 '12 #5
dsatino
393 256MB
Well, what I gave you was the correct syntax. You simply had too many parantheses.


In general the IIF function is as follows:

IIF([statement to evaluate], result/expression where statement is true, result/expression where statement is false)


for example:

IIF(5>4,"YES!!!","no....") would return: YES!!!

whereas

IIF(4>5,"YES!!!","no....") would return: no....
May 29 '12 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: SueB | last post by:
I currently have a 'mail-merge' process in my Access db project. It generates custom filled out Award Certificates based on an SQL SELECT statement in a VBA routine invoked by clicking on a...
19
by: rdavis7408 | last post by:
Hello, I have four textboxes that the user enters the price per gallon paid at the pump, the mileage per gallon and I would like to then calculate the cost per gallon and use a switch statement to...
4
by: vg-mail | last post by:
Hello all, I have identical design for form and report but I am getting calculation error on form and everything is OK on report. The form and report are build up on SQL statement. The...
1
by: gjoneshtfc | last post by:
Hello, I have an asp page that is a table. In the table the end column is a calculation of other values, for example: ...
10
by: 60325 | last post by:
This is the page where I collect the data in drop-down boxes with values of 1-10 and send it to a submitted page to do calculations. Example: Employee1 TeamScore(1-10) Employee2 ...
6
by: KimC | last post by:
I have a question about how to perform a calculation. I'm using Access 2003 in Windows XP. I have three fields of different measurements, which I'll call A, B, and C. Those numbers get crunched...
22
by: John | last post by:
Hi Folks, I'm experimenting a little with creating a custom CEdit control so that I can decide on what the user is allowed to type into the control. I started off only allowing floating point...
3
by: mattmao | last post by:
Okay, I was asked by a friend about the result of this limit: http://bbs.newwise.com/attdata/forumid_14/20070922_fe7f77c81050413a20fbDWYOGm7zeRj3.jpg Not n->zero but n-> + infinite I really...
23
klarae99
by: klarae99 | last post by:
In Access 2003 I am creating an Inventory Database from scratch. There are two tables (tblProductInformation and tblSubProducts) that I am trying to use in a queary to determine the number of Items...
18
by: dspfun | last post by:
Hi! The words "expression" and "statement" are often used in C99 and C- textbooks, however, I am not sure of the clear defintion of these words with respect to C. Can somebody provide a sharp...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.