Calculating null values

  • Thread starter shannaj via AccessMonster.com
  • Start date
S

shannaj via AccessMonster.com

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?
 
S

shannaj via AccessMonster.com

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

Guest

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 said:
Year Sales +/-: ([qryCustomerSales2007CT.Total Of Amount]-
[qryCustomerSales2006CT.Total Of Amount])

KARL said:
Post your SQL.
 
S

shannaj via AccessMonster.com

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 said:
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]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top