PC Review


Reply
Thread Tools Rate Thread

Coding 30 day average

 
 
gemini2
Guest
Posts: n/a
 
      5th Jul 2005
I hope someone can help me. I need to create a text box on a for
that will display a running 30-day average of a field. How would
code this so that each day the maximum number of days it use t
calculate the average is 30. :?

 
Reply With Quote
 
 
 
 
tina
Guest
Posts: n/a
 
      5th Jul 2005
you could try using a DSum() function, where the criteria selects records
based on a date field in each record, something like

=DSum("[NumberField]", "MyTable", "[DateField] Between #" & Date() & "# And
#" & Date()-30 & "#") / 30

hth


"gemini2" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I hope someone can help me. I need to create a text box on a form
> that will display a running 30-day average of a field. How would I
> code this so that each day the maximum number of days it use to
> calculate the average is 30. :?:
>



 
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
Re: A useful AVERAGE calculation without using the built-in AVERAGE function Roger Govier Microsoft Excel New Users 0 16th Jan 2011 01:20 PM
Find monthly average but have average automatically configured =?Utf-8?B?a2ltYmFmcmVk?= Microsoft Excel Misc 2 8th Aug 2007 12:28 AM
Error Handling #N/A with AVERAGE Function - Average of values in Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 13 31st Jul 2005 03:59 PM
Weighed Average of a weiged average when there are blanks krl - ExcelForums.com Microsoft Excel Misc 1 6th Jul 2005 07:37 PM
Problems with coding and coding question!! James Microsoft Access Form Coding 0 23rd Feb 2004 10:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:34 AM.