Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Return 0 for a field in a report

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Dec 28, 2007 1:56 pm    Post subject: Return 0 for a field in a report Reply with quote

How can I display or return 0 for a field in a report if the query returns a null for the value?

Instead of having blanks on the report I want to show "0.00"

Thanks.
_________________
--------------------------
Thanks for everything.
Back to top
View user's profile Send private message
BillyB
Frequent Poster


Joined: 27 Jul 2005
Posts: 60
Location: Lexington, KY, USA

PostPosted: Fri Dec 28, 2007 2:00 pm    Post subject: Reply with quote

You can use the Nz function.

Selct the field you want on the report, go to Control Source and do this:

Code:
=Nz([Sep],"0.00")


Where "Sep" is your field.

Be carfull that the Name of the control is not the same thing, if it is change the Name to something like "tbxSep"

That should do it. Very Happy
_________________
I'd rather be making chairs.
Back to top
View user's profile Send private message Send e-mail
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Dec 28, 2007 2:54 pm    Post subject: Reply with quote

Hey, that did it Exclamation

Thanks a bunch Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group