Any reason for not just using
=DAvg("[NoDays]","MyTable")
The Help file says "Records containing Null values aren't included in the
calculation of the average"
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
"Klatuu" <(E-Mail Removed)> wrote in message
news

28704DD-DE2E-4F90-965E-(E-Mail Removed)...
> =DSum("[NoDays]","MyTable") / DCount("*", "MyTable", "NoDays Is Not Null")
> --
> Dave Hargis, Microsoft Access MVP
>
>
> "Guillermo" wrote:
>
>> An examply to "Subject: Calculate the average number of days (Access data
>> base)"
>> posted this morning.
>>
>> Agreement Number Nodays
>> 99363154553 12
>> 94474282 11
>> 9311802 10
>> 98512292721365 7
>> 48482632 6
>>
>> This my table. I need to sum the number of days (46) and calculate the
>> average.
>> 46 divided by the number of rows (5) -> 9.2. Easy mental arithmatic, but
>> how
>> do I do it in ACCESS?
>>