WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Average Table Columns

 
   Home -> Office other -> Programming RSS
Next:  Total not correct in Footer  
Author Message
user

External


Since: May 23, 2006
Posts: 39



(Msg. 1) Posted: Thu May 13, 2010 11:26 am
Post subject: Average Table Columns
Archived from groups: microsoft>public>frontpage>programming (more info?)

I have a DRW that I would like to get the average of each column. I can add
another results sections, but like to see some script to do so, so I don't
have to add another results section to the page.

Thanks for any assist
David
Back to top
Login to vote
Stefan B Rusynko

External


Since: Oct 11, 2003
Posts: 2132



(Msg. 2) Posted: Mon May 17, 2010 5:55 am
Post subject: Re: Average Table Columns [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Presuming the database field you are averaging is numeric,
- and all fields have values (to get a true average),
- use the same techniques as getting the SUM of a field named myAmount at:
http://spiderwebwoman.com/resources/dbrwtipsandtricks.asp#sum

But change it to use the Access AVG function:
SELECT AVG(myAmount) AS MyAvg


--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


"116" wrote in message
I have a DRW that I would like to get the average of each column. I can add
another results sections, but like to see some script to do so, so I don't
have to add another results section to the page.

Thanks for any assist
David
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Programming All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Help Forum Terms of Service |
  • Link to WUGNET |
  • IT Support