Show Null Count

A

Alex

I have a query with the following fields:

MondayStart
PODATE

I need PODATE to show the count of PODATES if the PODATE
is < MondayStart.

I can accomplish this by using the Where total, but if
there is a MondayStart date that is < than any PODATES,
that MondayStart date doesn't show in the query. I need
the MondayStart date to show as having a 0 value in the
PODATE field.

Thanks for you help.
Alex
 
E

Eric Butts [MSFT]

Hi Alex,

I wouldn't put this in the query but it gives the count you are looking for
(maybe you can place your query in a Report and include this DCount
function)

=DCount("[PODate]","[name of
query]","[PODate]<[MondayStart]")

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.


Regards,

Eric Butts
Microsoft Access Support
(e-mail address removed)
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights

--------------------
| Content-Class: urn:content-classes:message
| From: "Alex" <[email protected]>
| Sender: "Alex" <[email protected]>
| Subject: Show Null Count
| Date: Tue, 23 Mar 2004 10:52:21 -0800
| Lines: 16
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcQRB/ja8O1US5eeQiO0+tZ3R70akg==
| Newsgroups: microsoft.public.access.queries
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:194836
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.access.queries
|
| I have a query with the following fields:
|
| MondayStart
| PODATE
|
| I need PODATE to show the count of PODATES if the PODATE
| is < MondayStart.
|
| I can accomplish this by using the Where total, but if
| there is a MondayStart date that is < than any PODATES,
| that MondayStart date doesn't show in the query. I need
| the MondayStart date to show as having a 0 value in the
| PODATE field.
|
| Thanks for you help.
| Alex
|
 

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