Union Query to return line if query is blank

G

Guest

Just wondering if anyone can help me with a problem I am having.

I have created 4 crosstab queries to create a report for the Board broken
into columns by department

1. How many enquiries
2. How many active clients
3. How many enquiries withdrawn after going nowhere
4. How many closed accounts

I have then join these into a union query so that all the results display on
one query My problem is that if, say, no accounts have been closed, the
information simply doesn't show on the union so instead of getting 4 lines
the board only sees 3.

I would like the closed accounts query to show up as zeros even though the
first query is showing nothing.

Does anyone have any ideas.

Many thanks in advance
 
G

Guest

Never mind - I sorted it out by adding a permanent value in a different table
and joining them so that there would always be a record even if the original
query was blank
 

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

Similar Threads

SUM in a UNION query 2
Join on a UNION query 2
BUILDING UNION QUERY 9
Union Query multiple tables 4
Union Query 2
Union Query 7
Union Query to list duplicates 2
Union Query of Queries 4

Top