Re: One more ! Calculating Recordset Values
- From: "RobA" <anon@xxxxxxxxxxx>
- Date: Tue, 08 Nov 2005 08:30:28 GMT
There are 3 recordsets, each containing about 20 numeric values.
I was using the script below to retreive them, it was my attempt at
calculating them.
"p c" <nospam@xxxxxxxxxx> wrote in message
news:k-6dnSenD7Aimu3enZ2dnUVZ_sidnZ2d@xxxxxxxxxxxxxx
> To anser your uestions, can you provide more informaion? How many
> recordsets do you have? What's in each one? How are you retrieving the
> records.
>
> Give an example of what's in each value.
>
> ..PC
>
>
> RobA wrote:
>> Can anyone point me in the direction of some guidance for handling
>> recordset values.
>>
>> I am trying to calculate a resultant value (total) of adding 2 values and
>> mulitplying by the third.
>>
>> Eventually I wanted to get total for the resultant value (all the totals
>> added together) for the whole recordset!
>>
>> <%
>> Dim Total
>> Do While not aScrRst.EOF
>> Do While not eScrRst.EOF
>> Do While not iScrRst.EOF
>> Total = iScrRst("Score") + eScrRst("Score") * aScrRst("Score")
>>
>> Response.Write "Total"
>>
>> aScrRst.MoveNext
>> eScrRst.MoveNext
>> iScrRst.MoveNext
>>
>>
>> Loop
>> Loop
>> Loop
>> %>
.
- References:
- One more ! Calculating Recordset Values
- From: RobA
- Re: One more ! Calculating Recordset Values
- From: p c
- One more ! Calculating Recordset Values
- Prev by Date: Re: One more ! Calculating Recordset Values
- Next by Date: Re: One more ! Calculating Recordset Values
- Previous by thread: Re: One more ! Calculating Recordset Values
- Next by thread: Re: One more ! Calculating Recordset Values
- Index(es):
Relevant Pages
|