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  

Null report still needs output



 
 
Thread Tools Display Modes
  #1  
Old July 20th, 2004, 06:45 PM
Shinankoku
external usenet poster
 
Posts: n/a
Default Null report still needs output

Hello All,

I have a report for a database I've been working on for 6 months. It is populated by a query that filters on a field being populated. If there are no records which fulfill this condition, the report totals at the bottom evaluate to #error. This makes sense: there is no data for the report to work with. The porblem is that I need the report to not give errors - it needs to say something like "There is no data available for this report". I'd hoped that the "iserror" function, thrown is with something like a iif statement in the report totals, might handle this. Unfortunatly, this didn't work (it still returned an '#error'). Does anyone know of a way around this? If you need clarification (I realize I speaking a little vaguely here), please let me know.

Nick
  #2  
Old July 20th, 2004, 07:07 PM
Duane Hookom
external usenet poster
 
Posts: n/a
Default Null report still needs output

Use an expression like:
=IIf([HasData],Sum([YourField]),0)

--
Duane Hookom
MS Access MVP


"Shinankoku" wrote in message
...
Hello All,

I have a report for a database I've been working on for 6 months. It is

populated by a query that filters on a field being populated. If there are
no records which fulfill this condition, the report totals at the bottom
evaluate to #error. This makes sense: there is no data for the report to
work with. The porblem is that I need the report to not give errors - it
needs to say something like "There is no data available for this report".
I'd hoped that the "iserror" function, thrown is with something like a iif
statement in the report totals, might handle this. Unfortunatly, this
didn't work (it still returned an '#error'). Does anyone know of a way
around this? If you need clarification (I realize I speaking a little
vaguely here), please let me know.

Nick



 




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
UNION query question Dale Peart Running & Setting Up Queries 6 July 14th, 2004 12:26 AM
Label SRIT General Discussion 2 June 22nd, 2004 09:42 PM
Access inconsistencies Hoopie Running & Setting Up Queries 2 June 15th, 2004 10:53 AM
Null values in report GordonDow Setting Up & Running Reports 1 May 31st, 2004 06:29 AM


All times are GMT +1. The time now is 04:48 PM.


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