Running Total |
5/8/2008 3:15:58 PM |
ASPRunnerPro General questions | |
![]() How can I create a running total? I have a table that has the following: Item, QtyRec, QtyDisp, Unit, Balance |
|
J
|
Jane 5/13/2008 |
Hi, str = "select field1, field2 from tablename order by recordID desc" Set rsTemp = server.CreateObject("ADODB.Recordset") rsTemp.open str, dbConnection 'add your code here ' rstemp("field1") is field value of previous record rsTemp.Close : set rsTemp = Nothing |
![]() |
jadach authorDevClub member 5/13/2008 |
You have Hi, use Before record added event for this purpose. Here is a sample: |
J
|
Jane 5/13/2008 |
This code is dependent on your aim. |
![]() |
jadach authorDevClub member 5/13/2008 |
I figured as much. Thanks Jane. This code is dependent on your aim. For example you can sum or subtract selected value with entered values. |