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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |