A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Count function show zero when no record for an institution



 
 
Thread Tools Display Modes
  #1  
Old October 12th, 2004, 02:29 PM
George in Waco
external usenet poster
 
Posts: n/a
Default 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  
Old October 12th, 2004, 03:25 PM
James Goodman
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.