PC Review


Reply
Thread Tools Rate Thread

Count if Null and If = Yes

 
 
ant1983
Guest
Posts: n/a
 
      10th Jan 2010
Ive posted this question before and now cant seem to find the it :O

I have a main menu form frmMainMenu and on that for i have a section on
stats and things needing attention.

I want to do a count of all rooms needing venues hence a count of the field
numRoom in table tblTrainingSession - The answer was below which works
perfectly but i want to go one step further and only count as below but for
current training only which is a Yes/No field called blnCurrentTraining. How
do i add this extra bit?

=DCount("*","tblTrainingSession","numRoom Is Null")

Thanks!

ant1983
 
Reply With Quote
 
 
 
 
XPS350
Guest
Posts: n/a
 
      10th Jan 2010
On 10 jan, 09:45, ant1983 <ant1...@discussions.microsoft.com> wrote:
> Ive posted this question before and now cant seem to find the it :O
>
> I have a main menu form frmMainMenu and on that for i have a section on
> stats and things needing attention.
>
> I want to do a count of all rooms needing venues hence a count of the field
> numRoom in table tblTrainingSession - The answer was below which works
> perfectly but i want to go one step further and only count as below but for
> current training only which is a Yes/No field called blnCurrentTraining. *How
> do i add this extra bit?
>
> =DCount("*","tblTrainingSession","numRoom Is Null")
>
> Thanks!
>
> ant1983


=DCount("*","tblTrainingSession","numRoom Is Null AND
blnCurrentTraining")

Groeten,

Peter
http://access.xps350.com
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count null fields Steve Goodrich Microsoft Access Getting Started 4 19th Jan 2009 03:04 PM
COUNT IF but not if 'X' IS NULL Pyrite Microsoft Excel Worksheet Functions 5 1st Aug 2008 02:34 PM
count Iif is not null Mary Microsoft Access Queries 1 23rd Mar 2008 05:54 PM
Count Null's =?Utf-8?B?QmVlcCBCZWVw?= Microsoft Access 8 25th Aug 2007 12:12 AM
Count - return a value of zero for a null count Alan Greiner Microsoft Access Getting Started 1 25th Jun 2003 03:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:16 AM.