Inner Join returns no records, how to be used in a calc..

C

Cangioli

Sorry, its difficult to express my dilema in the Subject. What I'm doing is
using an inner join of 2 tables to compare inquiry ids. The ids are unique
to each record, and I am comparing the prior day's inventory to today's, and
using a Count function to display the amount of carryover. I use that result
to then calculate incoming and output values (in separate queries). My
problem is that when the carryover = 0, my resulting queries will not
calculate. Is there a way to either default my Count to 0 if no records
match, or possibly make some type of Iif statement in my incoming and output
calculations? Any help is appreciated. Thanks
 
G

Golfinray

In a new row in your query, try
Whatever name you want:IIF([your field]is null,"0",[your field])
 
C

Cangioli

Thanks. I'll give that a swing.

Golfinray said:
In a new row in your query, try
Whatever name you want:IIF([your field]is null,"0",[your field])

Cangioli said:
Sorry, its difficult to express my dilema in the Subject. What I'm doing is
using an inner join of 2 tables to compare inquiry ids. The ids are unique
to each record, and I am comparing the prior day's inventory to today's, and
using a Count function to display the amount of carryover. I use that result
to then calculate incoming and output values (in separate queries). My
problem is that when the carryover = 0, my resulting queries will not
calculate. Is there a way to either default my Count to 0 if no records
match, or possibly make some type of Iif statement in my incoming and output
calculations? Any help is appreciated. Thanks
 

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