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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |