Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Microsoft Access > Re: Daily count...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 9 Topic 30235 of 30910
Post > Topic >>

Re: Daily counts

by "Ed Robichaud" <edrobichaud@[EMAIL PROTECTED] > May 12, 2008 at 01:26 PM

Thanks, I'm familiar with the DateDiff function, but what I would really 
like is a method to calculate the # of folks present for each day within a

user selected date range.

The date-filtered query now returns records with:
    ID, startdate, stopdate, etc.

i.e.     001; 3/2/08; 3/20/08;...
          002; 3/1/08; 3/18/08;...
          003; 03/15/08;3/20/08;...

For example, I can find how many folks were present sometime within 
3/1/08-3/31-08, but I'd like a daily count of those present for:

3/1/08
3/2/08
3/308
....
3/31/08

-Ed

"Pachydermitis" <praesagus@[EMAIL PROTECTED]
> wrote in message 
news:fc2d239e-7388-47b1-9150-d75541669337@[EMAIL PROTECTED]
 May 12, 9:24 am, "Ed Robichaud" <edrobich...@[EMAIL PROTECTED]
> wrote:
> I'm struggling to come up with a query/re****t of daily attendance for
> records that have only start and stop dates. A x-tab (with parameters
that
> records be within a selected date range) would seem to be the way to go
> here, but how do I get a count for each date within that range?
>
> thanks -Ed

Try using datediff in the query field.
Without seeing an example of your table I cn't be sure, but you might
put a conditional (datediff('d',FieldDate,date())=1) then sum instead
of count
P
 




 9 Posts in Topic:
Daily counts
"Ed Robichaud"   2008-05-12 12:24:44 
Re: Daily counts
Pachydermitis <praesag  2008-05-12 10:00:02 
Re: Daily counts
"Ed Robichaud"   2008-05-12 13:26:07 
Re: Daily counts
Salad <oil@[EMAIL PROT  2008-05-12 11:10:43 
Re: Daily counts
"Ed Robichaud"   2008-05-13 00:09:02 
Re: Daily counts
"Fred Zuckerman"  2008-05-12 21:50:55 
Re: Daily counts
Salad <oil@[EMAIL PROT  2008-05-12 21:54:54 
Re: Daily counts
"Ed Robichaud"   2008-05-19 10:37:37 
Re: Daily counts
"rquintal@[EMAIL PRO  2008-05-14 09:49:36 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 20:29:29 CDT 2008.