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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Division by zero when opening a report



 
 
Thread Tools Display Modes
  #1  
Old September 8th, 2005, 01:38 AM
Aaron
external usenet poster
 
Posts: n/a
Default Division by zero when opening a report

Hi,

I get this division by zero when opening a report. It used to run alright
until about 3 months ago. The report is run on a quarterly basis. I noticed
that when I turn off the filter, the report no longer has that error but it
has too much information.

I have a filter in the report properties activated ([0-3 0-299 Bal] Is Not
Null Or [4-36 0-299 Bal] Is Not Null Or [36+ 0-299 Bal] Is Not Null). The
report is pulling its information from a query which contains these fields.

0-3 0-299 Bal: IIf(([RTM]=0 And [RTM]4) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

4-36 0-299 Bal: IIf(([RTM]=4 And [RTM]=36) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

36+ 0-299 Bal: IIf([RTM]36 And ([APY]=0 And [APY]3),[CurrentFace],Null)

Do you have any idea why it stopped running? I'm baffled.....

Thank you,
Aaron
  #2  
Old September 8th, 2005, 03:52 AM
RuralGuy
external usenet poster
 
Posts: n/a
Default

I would try changing the filter to:

Not IsNull([0-3 0-299 Bal]) OR Not IsNull([4-36 0-299 Bal]) _
OR Not IsNull([36+ 0-299 Bal])

....and see what happens.

On Wed, 7 Sep 2005 17:38:03 -0700, "Aaron"
wrote:

Hi,

I get this division by zero when opening a report. It used to run alright
until about 3 months ago. The report is run on a quarterly basis. I noticed
that when I turn off the filter, the report no longer has that error but it
has too much information.

I have a filter in the report properties activated ([0-3 0-299 Bal] Is Not
Null Or [4-36 0-299 Bal] Is Not Null Or [36+ 0-299 Bal] Is Not Null). The
report is pulling its information from a query which contains these fields.

0-3 0-299 Bal: IIf(([RTM]=0 And [RTM]4) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

4-36 0-299 Bal: IIf(([RTM]=4 And [RTM]=36) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

36+ 0-299 Bal: IIf([RTM]36 And ([APY]=0 And [APY]3),[CurrentFace],Null)

Do you have any idea why it stopped running? I'm baffled.....

Thank you,
Aaron


_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.
  #3  
Old October 12th, 2005, 03:29 AM
Aaron
external usenet poster
 
Posts: n/a
Default

Hi,

Sorry it took so long to respond back. The change did not help. It seems
like there might be something wrong with the data. When I run the report
with a previous table, it works. Currently, I'm trying to find out what data
could be affecting the filter.

Thank you,
Aaron

"RuralGuy" wrote:

I would try changing the filter to:

Not IsNull([0-3 0-299 Bal]) OR Not IsNull([4-36 0-299 Bal]) _
OR Not IsNull([36+ 0-299 Bal])

....and see what happens.

On Wed, 7 Sep 2005 17:38:03 -0700, "Aaron"
wrote:

Hi,

I get this division by zero when opening a report. It used to run alright
until about 3 months ago. The report is run on a quarterly basis. I noticed
that when I turn off the filter, the report no longer has that error but it
has too much information.

I have a filter in the report properties activated ([0-3 0-299 Bal] Is Not
Null Or [4-36 0-299 Bal] Is Not Null Or [36+ 0-299 Bal] Is Not Null). The
report is pulling its information from a query which contains these fields.

0-3 0-299 Bal: IIf(([RTM]=0 And [RTM]4) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

4-36 0-299 Bal: IIf(([RTM]=4 And [RTM]=36) And ([APY]=0 And
[APY]3),[CurrentFace],Null)

36+ 0-299 Bal: IIf([RTM]36 And ([APY]=0 And [APY]3),[CurrentFace],Null)

Do you have any idea why it stopped running? I'm baffled.....

Thank you,
Aaron


_______________________________________________
hth - RuralGuy (RG for short)
Please post to the NewsGroup so all may benefit.

 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
pop-up form before opening a report Jerry Crosby Using Forms 2 September 16th, 2005 11:58 PM
Connection Error on opening the report Prat Setting Up & Running Reports 0 December 24th, 2004 05:39 PM
Save Report With CreateReport Coding Issue Jeff Conrad Setting Up & Running Reports 8 July 12th, 2004 08:39 AM
Opening reports causes report to open twice and produces errors Matt the confused newbie General Discussion 7 July 1st, 2004 09:32 PM
Creating a report from a form Kristin Setting Up & Running Reports 7 June 28th, 2004 09:21 PM


All times are GMT +1. The time now is 12:34 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.