nulls/zero

S

Steve

Let's say there's a table with 3 fields: Account, 2007Bal, 2006Bal and there
are three records:

Account 2007Bal 2006Bal
1000 500
1000 1500
2000 750

If I do a group by account query I get:

Account 2007Bal 2006Bal
1000 500 1500
2000 750 null

I want the null to be zero so I can calculate the inc/dec from 2007 to 2006.
 
B

Beetle

Use the Nz function in your query. In your case it would be something like;

2007 Balance: nz([2007Bal],0) 2006 Balance: nz([2006Bal],0)
 

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