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  

#error due to blank report



 
 
Thread Tools Display Modes
  #1  
Old February 26th, 2007, 05:48 PM posted to microsoft.public.access.reports
MARK RAUCH
external usenet poster
 
Posts: 1
Default #error due to blank report

I have a billing report that uses totals for the month. If there is no
billing the report is blank. If I add old billing to the blank billing I get
#error. How do I get it to add up.

Thanks
--
Mark
  #2  
Old February 26th, 2007, 11:19 PM posted to microsoft.public.access.reports
Damian S
external usenet poster
 
Posts: 741
Default #error due to blank report

Hi Mark,

You need to replace NULL values with 0. Try using nz(FIELDNAME, 0)

Damian.

"MARK RAUCH" wrote:

I have a billing report that uses totals for the month. If there is no
billing the report is blank. If I add old billing to the blank billing I get
#error. How do I get it to add up.

Thanks
--
Mark

  #3  
Old February 27th, 2007, 06:07 AM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default #error due to blank report

Nz() will not work if the record doesn't return any records.
You can use an expression like:
=IIf([HasData],[Some Expression],0)

--
Duane Hookom
Microsoft Access MVP


"Damian S" wrote:

Hi Mark,

You need to replace NULL values with 0. Try using nz(FIELDNAME, 0)

Damian.

"MARK RAUCH" wrote:

I have a billing report that uses totals for the month. If there is no
billing the report is blank. If I add old billing to the blank billing I get
#error. How do I get it to add up.

Thanks
--
Mark

 




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 06:45 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.