A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sum Iff Function



 
 
Thread Tools Display Modes
  #1  
Old July 2nd, 2008, 09:12 PM posted to microsoft.public.access.forms
Hagan
external usenet poster
 
Posts: 12
Default Sum Iff Function

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))
  #2  
Old July 2nd, 2008, 09:53 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Sum Iff Function

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #3  
Old July 2nd, 2008, 10:00 PM posted to microsoft.public.access.forms
Hagan
external usenet poster
 
Posts: 12
Default Sum Iff Function

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #4  
Old July 2nd, 2008, 10:04 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Sum Iff Function

Okay, so where is the code and what are Monthly Limit and Total Points?

--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #5  
Old July 2nd, 2008, 10:16 PM posted to microsoft.public.access.forms
Hagan
external usenet poster
 
Posts: 12
Default Sum Iff Function

The monthly limit and total points are in a table in the db. I'm not sure
where to get the code. I just can't get it to grand total.

"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #6  
Old July 2nd, 2008, 10:19 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Sum Iff Function

The Iif statement you posted. Is it in a query, a form, on a report, in VBA
code, A macro?
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

The monthly limit and total points are in a table in the db. I'm not sure
where to get the code. I just can't get it to grand total.

"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #7  
Old July 2nd, 2008, 10:21 PM posted to microsoft.public.access.forms
Hagan
external usenet poster
 
Posts: 12
Default Sum Iff Function

In a report.

"Klatuu" wrote:

The Iif statement you posted. Is it in a query, a form, on a report, in VBA
code, A macro?
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

The monthly limit and total points are in a table in the db. I'm not sure
where to get the code. I just can't get it to grand total.

"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #8  
Old July 2nd, 2008, 10:39 PM posted to microsoft.public.access.forms
Klatuu
external usenet poster
 
Posts: 7,074
Default Sum Iff Function

Okay. First Total Points and Monthly Limit must be fields in the report's
record source. The expression you are using appears to be valid, so that is
the only thing I can think of that would cause it to ask you to enter them.
If you have controls on your report with the same name, you should rename
them so the report wont get confused.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

In a report.

"Klatuu" wrote:

The Iif statement you posted. Is it in a query, a form, on a report, in VBA
code, A macro?
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

The monthly limit and total points are in a table in the db. I'm not sure
where to get the code. I just can't get it to grand total.

"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

  #9  
Old July 2nd, 2008, 10:47 PM posted to microsoft.public.access.forms
Hagan
external usenet poster
 
Posts: 12
Default Sum Iff Function

I think you may have found the error. Thanks for the help, I'll let you know
if it works.

"Klatuu" wrote:

Okay. First Total Points and Monthly Limit must be fields in the report's
record source. The expression you are using appears to be valid, so that is
the only thing I can think of that would cause it to ask you to enter them.
If you have controls on your report with the same name, you should rename
them so the report wont get confused.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

In a report.

"Klatuu" wrote:

The Iif statement you posted. Is it in a query, a form, on a report, in VBA
code, A macro?
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

The monthly limit and total points are in a table in the db. I'm not sure
where to get the code. I just can't get it to grand total.

"Hagan" wrote:

There is no actual error, I'm just asked to supply the Monthly Limit and the
Total Points, but I can't as each item has a different points value and a
different monthly limit.

"Klatuu" wrote:

What error?
What are you asked for?
Where is this code?
More detail makes it easier to help with an answer.
--
Dave Hargis, Microsoft Access MVP


"Hagan" wrote:

I'm trying to use an Iif function between two columns that are populated in
the db. The lines total across, but when I try to grand total them att he
bottom, I get asked for more information or get an error.

=Sum(IIf([Monthly Limit][Total Points],[Total Points],[Monthly Limit]))

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:52 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.