|
rdouglass -> RE: ASP group by recordset field (6/13/2005 13:56:09)
|
You say "it doesn't work". Does that mean nothing is displayed, wrong results, or an error on the page? If you're looking for a "page total" (or for that matter a group total), I find this works well and will reduce your DB hit by 1: DIM a variable to hold the total: <% DIM myTotal myTotal = 0%> Then, very time you show (or want to add a value), add it to myTotal. For instance: <td align="center" width="153"><span class="style10"><%= FormatNumber((poreport.Fields.Item("chkamnt").Value), -1, -2, -1, -2) %><%myTotal = myTotal + poreport.Fields.Item("chkamnt").Value%></span></td> Then, just display the myTotal at the bottom something like: <%=FormatCurrency(myTotal,2)%> That help any?
|
|
|
|