My Assistant
![]() ![]() |
|
|
Apr 3 2012, 01:29 PM
Post
#1
|
|
|
UtterAccess Addict Posts: 132 |
I've tried different combinations that I've found already posted but not having success.
I use the following: =nz(([Reports]![Copy Of RptInvoice]![rptInvoicePublishing Subreport].[Report]![PublishedTotal]),0)+nz(([Reports]![Copy Of RptInvoice]![rptInvoiceServices Subreport].[Report]![ServicesTotal]),0) and get: $1.50$14.50 These are the totals of each of the two subreports. What's missing? |
|
|
|
Apr 3 2012, 01:40 PM
Post
#2
|
|
|
UtterAccess Ruler Posts: 1,090 |
CODE =nz(([Reports]![Copy Of RptInvoice]![rptInvoicePublishing Subreport].[Report]![PublishedTotal]),0)+nz(([Reports]![Copy Of RptInvoice]![rptInvoiceServices Subreport].[Report]![ServicesTotal]),0) try: CODE = "$" & CCur(nz(([Reports]![Copy Of RptInvoice]![rptInvoicePublishing Subreport].[Report]![PublishedTotal]),0))+CCur(nz(([Reports]![Copy Of RptInvoice]![rptInvoiceServices Subreport].[Report]![ServicesTotal]),0))
|
|
|
|
Apr 3 2012, 01:42 PM
Post
#3
|
|
|
UtterAccess VIP Posts: 9,440 From: Wisconsin |
Kruzer,
Just a wild stab in the dark here, but maybe convert your two subreport values to Currency datatype, since the Nz() function seems to be returning a string value: =CCcur(nz(([Reports]![Copy Of RptInvoice]![rptInvoicePublishing Subreport].[Report]![PublishedTotal]),0))+CCur(nz(([Reports]![Copy Of RptInvoice]![rptInvoiceServices Subreport].[Report]![ServicesTotal]),0)) Hope this helps, Dennis |
|
|
|
Apr 3 2012, 01:44 PM
Post
#4
|
|
|
UtterAccess Addict Posts: 132 |
This works. Thank you!
Can you explain the "$" & CCur so I understand what it is? Edit: Can it also be formated to be $0.00? This post has been edited by Kruzer: Apr 3 2012, 01:45 PM |
|
|
|
Apr 3 2012, 01:49 PM
Post
#5
|
|
|
UtterAccess Ruler Posts: 1,090 |
CCur() will convert your text to Currency format, while "$" in front just add a dollar sign to your total (just in case you will display it on label control).
If it will be displayed on TextBox, you can remove the "$" sign, provided that you have formatted your Textbox as Currency. |
|
|
|
Apr 3 2012, 01:53 PM
Post
#6
|
|
|
UtterAccess Addict Posts: 132 |
Perfect. Thanks for the explanation and assistance.
Have a great day. |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 20th June 2013 - 12:52 AM |