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  

Calculating null values



 
 
Thread Tools Display Modes
  #1  
Old August 7th, 2007, 10:33 PM posted to microsoft.public.access.reports
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Calculating null values

I have a database that compares our customer sales for 2006 and 2007. I
created a text box to calculate the difference in the 2006 and 2007 sales. I
have used the NZ function to eliminate my null values to get the 0 value for
the values for 2006 and 2007. When the value for sales for 2006 or 2007
ends up being 0, it does not calculate the difference. Can someone please
help?

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

  #2  
Old August 7th, 2007, 10:46 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Calculating null values

Post your SQL.
--
KARL DEWEY
Build a little - Test a little


"shannaj via AccessMonster.com" wrote:

I have a database that compares our customer sales for 2006 and 2007. I
created a text box to calculate the difference in the 2006 and 2007 sales. I
have used the NZ function to eliminate my null values to get the 0 value for
the values for 2006 and 2007. When the value for sales for 2006 or 2007
ends up being 0, it does not calculate the difference. Can someone please
help?

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


  #3  
Old August 10th, 2007, 08:41 PM posted to microsoft.public.access.reports
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Calculating null values

Year Sales +/-: ([qryCustomerSales2007CT.Total Of Amount]-
[qryCustomerSales2006CT.Total Of Amount])

KARL DEWEY wrote:
Post your SQL.
I have a database that compares our customer sales for 2006 and 2007. I
created a text box to calculate the difference in the 2006 and 2007 sales. I
have used the NZ function to eliminate my null values to get the 0 value for
the values for 2006 and 2007. When the value for sales for 2006 or 2007
ends up being 0, it does not calculate the difference. Can someone please
help?


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

  #4  
Old August 10th, 2007, 09:10 PM posted to microsoft.public.access.reports
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Calculating null values

I meant for you to post your complete query SQL. What you posted does not
show how you used the NZ function.

Does your queries [qryCustomerSales2007CT.Total Of Amount] and
[qryCustomerSales2006CT.Total Of Amount] individually return values other
than zero?
--
KARL DEWEY
Build a little - Test a little


"shannaj via AccessMonster.com" wrote:

Year Sales +/-: ([qryCustomerSales2007CT.Total Of Amount]-
[qryCustomerSales2006CT.Total Of Amount])

KARL DEWEY wrote:
Post your SQL.
I have a database that compares our customer sales for 2006 and 2007. I
created a text box to calculate the difference in the 2006 and 2007 sales. I
have used the NZ function to eliminate my null values to get the 0 value for
the values for 2006 and 2007. When the value for sales for 2006 or 2007
ends up being 0, it does not calculate the difference. Can someone please
help?


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


  #5  
Old August 10th, 2007, 10:12 PM posted to microsoft.public.access.reports
shannaj via AccessMonster.com
external usenet poster
 
Posts: 35
Default Calculating null values

Sorry, I figured it out. It took me looking at it in SQL to realize I did
not have it in my query. Thanks!
KARL DEWEY wrote:
I meant for you to post your complete query SQL. What you posted does not
show how you used the NZ function.

Does your queries [qryCustomerSales2007CT.Total Of Amount] and
[qryCustomerSales2006CT.Total Of Amount] individually return values other
than zero?
Year Sales +/-: ([qryCustomerSales2007CT.Total Of Amount]-
[qryCustomerSales2006CT.Total Of Amount])

[quoted text clipped - 6 lines]
ends up being 0, it does not calculate the difference. Can someone please
help?


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200708/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 09:05 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.