Re: Need help on a Query Calculation
- From: John Spencer <spencer@xxxxxxxxxx>
- Date: Wed, 16 Jul 2008 19:40:27 -0400
Perhaps this VBA function will do what you want.
Public Function fGetTotal(Lbase As Long, Ltop As Long, Llevel As Long)
Dim Lsum As Long
Dim iLoop As Long
For iLoop = Lbase To Ltop Step Llevel
Lsum = Lsum + iLoop
Next iLoop
Lsum = 2 * Lsum - Ltop
fGetTotal = Lsum
End Function
.
- Prev by Date: Re: Limit query to one result
- Next by Date: Re: Hard to explain - multiple update fields query...
- Previous by thread: Re: Executing a make-table query using multiple primary keys
- Next by thread: Re: Help with a query
- Index(es):
Relevant Pages
|