473,387 Members | 1,603 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,387 software developers and data experts.

If statement in reports

I have summed all "Actual production" in a report. I need to sum all " Packaged production " in a report. I have a check box "Inspect only " . "Packaged Production" is all the "Actual Production" minus the Actual production which have "Inspect Only" checked. How do i do this in a report? an IF statement?

Kindly help.
Oct 27 '06 #1
1 1966
jimatqsi
1,271 Expert 1GB
Try adding Actual Production to you underlying recordset. You can build it into a query
Expand|Select|Wrap|Line Numbers
  1. PP: IIF([InspectOnly],0,ActualProduction)
That will return zero if the instpectonly flag is set, the ActualProduction value if it is not set.

Jim


I have summed all "Actual production" in a report. I need to sum all " Packaged production " in a report. I have a check box "Inspect only " . "Packaged Production" is all the "Actual Production" minus the Actual production which have "Inspect Only" checked. How do i do this in a report? an IF statement?

Kindly help.
Oct 27 '06 #2

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

Similar topics

1
by: Michelle | last post by:
I have tried every variation of the "onchange" statement below without any actual reloading of the page. I am hoping that the PHP PRINT statement is constructed wrong, otherwise it is javaScript...
2
by: JS | last post by:
I have v8.1 fix5 using Win2k AS on 7 node logical system. I create event monitor writing to file and turn it on. Using application, I connect to db and navigate from screen to screen, generating...
2
by: Richard Holliingsworth | last post by:
Hello: How do you attac an SQL statement to an unbound forms (or reports) control in A2002? I created an unbound text box, and I want to attach the following SQL statement..... select...
5
by: WindAndWaves | last post by:
Hi Team The function below searches all the tables in a database. However, if subsearch = true then it searches all the objects listed in a recordset (which are all table names). I thought to...
1
by: BerkshireGuy | last post by:
The following statement works in Access 2000, but when I run the same database in Access 2003, I get a #Num! error. =IIf(IsError(!!!),0,!!!)/IIf(IsError(!!!),1,!!!) Any ideas? Thanks, ...
4
by: Anja | last post by:
Hi everyone, I am trying to use the expression builder to create input to a control in an Access report. I have a table called Records and I want to select the minimum date for a record where...
1
by: mycall | last post by:
Heyyas. I am trying to print out a report which lists account details and payment amounts from january to december. I have following tables: Payment(paymentNo, DateOwing, amount, accountID)...
1
by: teneesh | last post by:
I'm not very clear on the synax when creating a CASE statement in Access. Please take a look at this and guide me on the appropriate syntax please. Thanks Private Sub txtCount_Exit(Cancel As...
0
by: angi35 | last post by:
In Access 2000, I'm trying to create a couple reports but can't figure out the queries. 1. In a form, I have a control with a dollar amount, with the source field . Then there's an option group...
14
by: MNNovice | last post by:
My main report contains 3 separate expense sub reports. For my sub report footers I used (one of the sub report shown here) I have this statement =IIf(IsNull(),0,Sum()) My goal is to show a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.