My code samples were for hand coded ASP, not for use w/ the DB results wizard
If you have used the query
SELECT sum(Hits)/(sum(ABs)-sum(Walks)) AS BatAvg FROM Results
Find in the displayed DBRW the field by FP DBRW using : BatAvg
- probably as something like: =FP_FieldVal(fp_rs,"BatAvg")
and wrap it in the Round Function as
=Round(FP_FieldVal(fp_rs,"BatAvg"),3)
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.frontpagemvps.com/FrontPa...3/Default.aspx
_____________________________________________
"Mitch_A" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Inserted Snips:
|
| "Stefan B Rusynko" <(E-Mail Removed)> wrote in
|
| This part worked in the query and the results show but still with an
| incorrect decimal position.
|
| > SELECT sum(Hits)/(sum(ABs)-sum(Walks)) AS BatAvg FROM Results
| >
|
|
| This part Im not really sure where I should put it? Can you explain in a
| bit more detail? I did try to replace the <<Express101>> in the DB results
| but it didnt work. Should I use the "Use HTML" option?
|
| > Then display is as
| > <% =Round(BatAvg,3) %>
| >
|
| I tried this but the query failed no matter how I entered it.
|
| > Or better still use
| > SELECT sum(Hits) AS AllHits, (sum(ABs) AS AtBats ,sum(Walks) as AtWalks
| > FROM Results
| >
|
| As before Im not real sure where this goes even had the query worked.
|
| > <% BatAvg=Round(AllHits/(AtBats-AtWal),3) %>
|
|
| Thanks you very much for any help past and future!
|
| Mitch
|
|