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



 
 
Thread Tools Display Modes
  #1  
Old February 2nd, 2007, 08:40 PM posted to microsoft.public.access.reports
ielmrani via AccessMonster.com
external usenet poster
 
Posts: 69
Default #error

Hi,
I can't understand why I am getting the following error: #error
in a report, I am trying to show null if column = zero. Like this:

=IIf([Rev H&W]="0",Null,[Rev H&W])
thanks in advance
Ismail

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200702/1

  #2  
Old February 2nd, 2007, 08:53 PM posted to microsoft.public.access.reports
Pendragon
external usenet poster
 
Posts: 78
Default #error

Remove the quotes around your zero. The quotes means that you are testing
for the character zero, rather than the number zero.

"ielmrani via AccessMonster.com" wrote:

Hi,
I can't understand why I am getting the following error: #error
in a report, I am trying to show null if column = zero. Like this:

=IIf([Rev H&W]="0",Null,[Rev H&W])
thanks in advance
Ismail

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200702/1


  #3  
Old February 2nd, 2007, 08:58 PM posted to microsoft.public.access.reports
ielmrani via AccessMonster.com
external usenet poster
 
Posts: 69
Default #error

thanks for your quick reply. I also solved it by putting the code in the
query instead of the report.

Pendragon wrote:
Remove the quotes around your zero. The quotes means that you are testing
for the character zero, rather than the number zero.

Hi,
I can't understand why I am getting the following error: #error

[quoted text clipped - 3 lines]
thanks in advance
Ismail


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200702/1

 




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 08:16 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.