Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Nz Functions in...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 30424 of 31576
Post > Topic >>

Nz Functions in Control Source

by colin spalding <colin.mardell@[EMAIL PROTECTED] > Jun 2, 2008 at 06:01 AM

Access 2003

I posted this last week; unfortunately, none of the suggested
solutions cured the problem

I have a subform which lists financial transactions for a client in
the main form, which I total in a textbox named "txtTotalPremium" in
the subform footer with the Control Source "=Sum([PremiumGBP])";
without quotations of course.  This works fine until the subform has
no records to return, in which case textbox result is blank.  That
would be fine except I need to use the result in another text box on
the main form as part of another calculation.  I have tried what seems
like a hundred different combinations of the Nz and IIf functions all
to no avail.  It seems to me that the straight forward
"=Nz(Sum([PremiumGBP]),0)" should do it, but unfortunately not;
whatever I do I get a blank textbox and "#Error" in the mainform
textbox,  Where do I go from here?

As an afterthought.  Should it matter that the Subform is on a Tab
Control?
 




 5 Posts in Topic:
Nz Functions in Control Source
colin spalding <colin.  2008-06-02 06:01:00 
Re: Nz Functions in Control Source
Arch <send.no@[EMAIL P  2008-06-02 09:37:28 
Re: Nz Functions in Control Source
lyle fairfield <lyle.f  2008-06-02 07:28:10 
Re: Nz Functions in Control Source
bobh <vulcaned@[EMAIL   2008-06-02 12:33:43 
Re: Nz Functions in Control Source
"Albert D. Kallal&qu  2008-06-02 21:03:29 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 23:16:47 CST 2008.