Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / October 2005

Tip: Looking for answers? Try searching our database.

dcount with criteria

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jderrig - 28 Oct 2005 15:47 GMT
I am trying to get my control source on my report to count the number of
accounts that have sales of Sales <10000000 and have management as a result
in Noncompete.  I currently have the following but it does not produce the
correct results.  I have tried every variation I can think of but nothing is
working.

=DCount("[CountOfAccount #]","Grain Accounts","Sales <10000000" And
[Noncompete]="management")

Thanks
Dennis - 28 Oct 2005 16:01 GMT
Try this

=DCount("[CountOfAccount #]","Grain Accounts","Sales <10000000 And
[Noncompete]='management'")

> I am trying to get my control source on my report to count the number of
> accounts that have sales of Sales <10000000 and have management as a result
[quoted text clipped - 6 lines]
>
> Thanks
jderrig - 28 Oct 2005 16:08 GMT
That works perfectly - THANKS

> Try this
>
[quoted text clipped - 11 lines]
> >
> > Thanks
Duane Hookom - 28 Oct 2005 20:22 GMT
You might also try:
=Sum(Abs([Sales] <10000000 And [Noncompete]="management") )

Signature

Duane Hookom
MS Access MVP
--

>I am trying to get my control source on my report to count the number of
> accounts that have sales of Sales <10000000 and have management as a
[quoted text clipped - 8 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.