PC Review


Reply
Thread Tools Rate Thread

Count/DCount Solution

 
 
SGP
Guest
Posts: n/a
 
      1st Nov 2008
I am trying to count the number of records on a query that are greater than
three different variables. Let's say I have 100,000 accounts with varying
account values and I want to find the number of accounts that are greater
than $10,000, $20,000, and $50,000. I have a db with over 1,000,000 records
so efficiency is key. So far, my efforts have rendered terribly slow results.

Cheers,
SGP
 
Reply With Quote
 
 
 
 
Steve Schapel
Guest
Posts: n/a
 
      1st Nov 2008
SGP,

Difficult to anwswer without knowing what you have tried so far. And I
can't understand the relationship between the 100,000 and the 1,000,000
you mentioned in your question. But here's the germ of an idea to pursue:
Over10G: Abs(Sum([YourAmount]>10000))

--
Steve Schapel, Microsoft Access MVP

SGP wrote:
> I am trying to count the number of records on a query that are greater than
> three different variables. Let's say I have 100,000 accounts with varying
> account values and I want to find the number of accounts that are greater
> than $10,000, $20,000, and $50,000. I have a db with over 1,000,000 records
> so efficiency is key. So far, my efforts have rendered terribly slow results.
>
> Cheers,
> SGP

 
Reply With Quote
Reply

« 11 | Re: aaaaaaaaa »
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
RE: Count, Dcount, or Ab(Sum())? Duane Hookom Microsoft Access Reports 0 14th Jan 2009 12:39 AM
Re: Count, Dcount, or Ab(Sum())? John Spencer Microsoft Access Reports 0 13th Jan 2009 11:36 PM
DCOUNT / COUNT IF??? =?Utf-8?B?Q0VSWUQ=?= Microsoft Excel Worksheet Functions 1 10th Jun 2006 01:58 AM
DCOUNT, SUM, or COUNT???? =?Utf-8?B?TWFjaWVr?= Microsoft Access 2 30th Mar 2006 04:50 PM
Count or Dcount =?Utf-8?B?TmV2aWxsZQ==?= Microsoft Excel Misc 6 19th Sep 2005 01:45 PM


Features
 

Advertising
 

Newsgroups
 


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