(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.
(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.
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