PC Review


Reply
Thread Tools Rate Thread

calculating average days

 
 
JohnL
Guest
Posts: n/a
 
      7th Jun 2010
I am trying to develop a report where in the PartNum footer the
average number of days between orders is calculated. I have
created the following:
Table: tblItemsRecvd
Fields:
PartNum
SupplrName
DateOrdrd
DateRecd
AmtRecd

Query: qryItemsRecvd based on tblItemsRcvd
PartNum Criteria: [Enter PartNum:]
SupplrName
DateOrdrd
DateRecd
AmtRecd

Report: rptItemsRecvd based on qryItemsRecvd

I would like to calculate the average number of days between orders for
the selected part number. Do I do it in the query (how?) or at the report
level (how?)? I am using Access2003 and am a novice.
TIA

 
Reply With Quote
 
 
 
 
Jörn Bosse
Guest
Posts: n/a
 
      7th Jun 2010
Hi,

i would do this in the query by using the DateDiff-Function.
Take a look at this link:
http://www.techonthenet.com/access/f...e/datediff.php

Regards
Jörn


Am 07.06.2010 01:49, schrieb JohnL:
> I am trying to develop a report where in the PartNum footer the
> average number of days between orders is calculated. I have
> created the following:
> Table: tblItemsRecvd
> Fields:
> PartNum
> SupplrName
> DateOrdrd
> DateRecd
> AmtRecd
>
> Query: qryItemsRecvd based on tblItemsRcvd
> PartNum Criteria: [Enter PartNum:]
> SupplrName
> DateOrdrd
> DateRecd
> AmtRecd
>
> Report: rptItemsRecvd based on qryItemsRecvd
>
> I would like to calculate the average number of days between orders for
> the selected part number. Do I do it in the query (how?) or at the report
> level (how?)? I am using Access2003 and am a novice.
> TIA
>


 
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
calculating sum and average values for specific days only Soccerboy83 Microsoft Excel Misc 2 2nd Sep 2009 10:38 PM
Conditional Formatting Dates calculating 10 days and 30 days from a certain date Sioux Microsoft Excel Worksheet Functions 2 11th Oct 2007 02:04 PM
Calculating average based on 7 days or 5 days Mas Microsoft Excel Discussion 5 3rd Sep 2006 05:09 PM
Calculating recurring date in following month, calculating # days in that period Walterius Microsoft Excel Worksheet Functions 6 4th Jun 2005 11:21 PM
Calculating # of busn days, not just calendar days, between 2 dates? StargateFanFromWork Microsoft Excel Programming 1 29th Jun 2004 08:31 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:46 PM.