Average format

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi all,

I am trying to make a field in a select query formatted to a whole number
while using group by AVG. Someone suggested yesterday I use - Format
([fieldname],""##,##0"). The format works fine except for when I change the
group by function to "AVG". Any ideas?


Bruce DiPaola
 
Hi all,

I am trying to make a field in a select query formatted to a whole number
while using group by AVG. Someone suggested yesterday I use - Format
([fieldname],""##,##0"). The format works fine except for when I change the
group by function to "AVG". Any ideas?

You'll need to do the Avg() inside the Format function - Format
returns a text string, and you can't average that!

Try

Format(Avg([Fieldname]), "#,##0"))

If that's not working please post the complete SQL view of your query.

John W. Vinson[MVP]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query Field formatting 1
Average of a Date Field 2
Running Yearly Sum 1
Format Average of Diff2Dates Function 2
Database Design 2
Avg expression in a query 4
Access report genrates wrong result 5
Formatting 1

Back
Top