473,466 Members | 1,413 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sum trouble

SJH
I have a report that I am working with and after some changes were made to
the database to keep more accurate information we are now struggling with
trying to utilize some of the old information.

The database is used for request for quote (RFQ) information and previously
any job that was accepted, the quoted information was changed to the
accepted dollar amount but to do this the quantities and part prices had to
be adjusted to get the calculated field to show the correct value. We made
a change and added a field for the accepted value so the quoted dollar
amount could be left alone. The accepted field is a currency field and the
dollar amount is entered directly, no calculations are performed to
determine this value.

Here's where I have the problem. On my reports, I changed everything where
we were previously showing accepted dollars to the new ACCEPTED field,
obviously the sums are working great to this point. Now they want to go
back and pull data from before this change was made. I have since added a
macro to show the QUOTED value if the ACCEPTED value is null. With that I
was happy, but now I for the life of me cannot figure out how to get a sum
for the column with these two values. All records are based on an entered
date range.

I have tried the following, but with no luck and unfortunately my experience
with this stuff is limited to trial and error,

=Sum(IIf([ACCEPTED] Is Null, 0, [QUOTED]))

Any helpful suggestions are welcome.

Thanks.
SJH
Nov 12 '05 #1
1 1393
SJH wrote:
I have a report that I am working with and after some changes were made to
the database to keep more accurate information we are now struggling with
trying to utilize some of the old information.

The database is used for request for quote (RFQ) information and previously
any job that was accepted, the quoted information was changed to the
accepted dollar amount but to do this the quantities and part prices had to
be adjusted to get the calculated field to show the correct value. We made
a change and added a field for the accepted value so the quoted dollar
amount could be left alone. The accepted field is a currency field and the
dollar amount is entered directly, no calculations are performed to
determine this value.

Here's where I have the problem. On my reports, I changed everything where
we were previously showing accepted dollars to the new ACCEPTED field,
obviously the sums are working great to this point. Now they want to go
back and pull data from before this change was made. I have since added a
macro to show the QUOTED value if the ACCEPTED value is null. With that I
was happy, but now I for the life of me cannot figure out how to get a sum
for the column with these two values. All records are based on an entered
date range.

I have tried the following, but with no luck and unfortunately my experience
with this stuff is limited to trial and error,

=Sum(IIf([ACCEPTED] Is Null, 0, [QUOTED]))

Any helpful suggestions are welcome.

Thanks.
SJH

See if
=Sum(IIf(IsNull([ACCEPTED]), 0, [QUOTED]))
works

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Bancroft | last post by:
Hi everyone, I'm running into a problem with my ASP.Net application. I've just created a new aspx page which uses some new components of mine that inherit from ServicedComponent and are...
6
by: Daniel Walzenbach | last post by:
Hi, I have a web application which sometimes throws an “out of memory” exception. To get an idea what happens I traced some values using performance monitor and got the following values (for...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
2
by: JLupear | last post by:
I am having trouble with my code again, I had prepared a question and the code to upload, however I am having trouble posting it, are there limits to the amount of lines you can post? I split it...
0
by: mrchatgroup | last post by:
news from http://www.mrchat.net/myblog/myblog/small-accidents-mean-big-trouble-for-supercollider.html Small Accidents Mean Big Trouble for Supercollider Image Scientists expect startup...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.