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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Count function show zero when no record for an institution
I've got two databases. One is a master listing of colleges, and the other is
a listing of federal lawsuits since calendar year 2000. I'm using the count function to add up the number of lawsuits filed against each college, but some colleges have no federal lawsuits. Accordingly, the count function skips them altogether in the query instead of returning a zero. How can I make a zero value appear in the query when I run it? |
#2
|
|||
|
|||
Use an OUTER JOIN between the tables so it selects all records from the
Colleges table, & only related records from the lawsuits table. I think this should give you the required result... -- Cheers, James Goodman "George in Waco" wrote in message ... I've got two databases. One is a master listing of colleges, and the other is a listing of federal lawsuits since calendar year 2000. I'm using the count function to add up the number of lawsuits filed against each college, but some colleges have no federal lawsuits. Accordingly, the count function skips them altogether in the query instead of returning a zero. How can I make a zero value appear in the query when I run it? |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
current record vs record count | Laurel | New Users | 1 | August 30th, 2004 01:07 PM |
How do I Count Record in Report | David Ehrenreich | Setting Up & Running Reports | 0 | July 28th, 2004 09:55 PM |
Form Doesn't Go To New Record | Steve | New Users | 15 | May 16th, 2004 04:33 PM |