Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Averaging data using number of days as denominator

Status
Not open for further replies.

charliec

IS-IT--Management
Aug 28, 2001
11
US
I have data for the month of August and want to compare averages for 3 days prior an event and 3 days post. How do I program such that Access looks at a start date and uses 3 days prior than and then 3 days post.

Thanks.
 
Need a little more info...are you trying to do this in a query? What do your tables look like? J. Jones
jjones@cybrtyme.com
 
If each date is in a separate record, you could use the AVG Domain Aggregate function:

Average = DAvg("field to average","table to average","recorddate Between #" & StartDate - 3 & "# And #" & StartDate + 3 & "#")

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top