AlanAnderson
Board Regular
- Joined
- Jun 7, 2010
- Messages
- 134
Hi All,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o></o>
This may seem silly but I have a blank regarding the logic.<o></o>
<o></o>
I need to set up a number of routines that will add totals.<o></o>
<o></o>
The actual number can vary. I can establish the number by doing a count (vCount)<o></o>
<o></o>
What I need to do, therefore, is have routines that basically say:<o></o>
<o></o>
and so on up to figure in vCount<o></o>
<o></o>
I imagine I’ll have a loop to the effect of:<o></o>
<o>
<o></o>
<o></o>
Then same routine needs to run again for vTotal & xx +1 and so on<o></o>
<o></o>
The questions:<o></o>
Regards,<o></o>
<o></o>
Alan<o></o>
<o></o>
This may seem silly but I have a blank regarding the logic.<o></o>
<o></o>
I need to set up a number of routines that will add totals.<o></o>
<o></o>
The actual number can vary. I can establish the number by doing a count (vCount)<o></o>
<o></o>
What I need to do, therefore, is have routines that basically say:<o></o>
Code:
[FONT=Times New Roman][SIZE=3]vStd1 + vDup1 + vTax1 = vTotal1 [/SIZE][/FONT]
[SIZE=3][FONT=Times New Roman]vStd2 + vDup2 + vTax2 = vTotal2 [/FONT][/SIZE]
and so on up to figure in vCount<o></o>
<o></o>
I imagine I’ll have a loop to the effect of:<o></o>
<o>
Code:
</o:p>
[SIZE=3][FONT=Times New Roman]For i = vStart & xx to vEnd & xx<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]vTotal & xx = (i,vStd) + (i,vDup) + (i,vTax) ‘ Would be fields on Row i<o:p></o:p>[/FONT][/SIZE]
[SIZE=3][FONT=Times New Roman]Next i [/FONT][/SIZE]
<o></o>
Then same routine needs to run again for vTotal & xx +1 and so on<o></o>
<o></o>
The questions:<o></o>
- Am I am the right track?<o></o>
- How do I establish xx in the above example<o></o>
Regards,<o></o>
<o></o>
Alan<o></o>