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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#Num! displayed in a control



 
 
Thread Tools Display Modes
  #1  
Old March 31st, 2009, 07:05 PM posted to microsoft.public.access.queries
zufie
external usenet poster
 
Posts: 70
Default #Num! displayed in a control

I see #Num! displayed in a control ( in a textbox of a subform).

What can I do to avoid this error?

Do I need to add =IIf([Total Complete week journal]=0,0, to the
beginning of the equation in my control source (of my textbox)?

-OR-

Do I need to delete *100 from my equation? (wich follows below)

=IIf([Total Complete week journal]=0,0,[Total Average Calcium]/[Total
Complete week journal])*100

I've tried both fixes before and each worked on its own or was I just
a lucky newbie Access programmer?

Your suggestions would be greatly appreciated!

Thanks,

John
  #2  
Old March 31st, 2009, 11:00 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default #Num! displayed in a control

Maybe this --
=IIf([Total Complete week journal]=0 OR [Total Complete week journal] Is
Null,0,[Total Average Calcium]/[Total Complete week journal])*100


"zufie" wrote:

I see #Num! displayed in a control ( in a textbox of a subform).

What can I do to avoid this error?

Do I need to add =IIf([Total Complete week journal]=0,0, to the
beginning of the equation in my control source (of my textbox)?

-OR-

Do I need to delete *100 from my equation? (wich follows below)

=IIf([Total Complete week journal]=0,0,[Total Average Calcium]/[Total
Complete week journal])*100

I've tried both fixes before and each worked on its own or was I just
a lucky newbie Access programmer?

Your suggestions would be greatly appreciated!

Thanks,

John

 




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 11:55 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.