Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Performing calcs in a recordset

Status
Not open for further replies.

jimmyclams

Programmer
Nov 16, 1999
6
US
Is there a way to perform calculations to a recordset? For example min, max, avg? I can do that in an array, but there has to be a better way than copying recordset elements to an array ( which I can't figure out anyway). Any help would be much appreciated.
 
Since a recordset can be based on an SQL string you can use the SQL functions min, max, avg etc.<br>
<br>
There are many examples of this in the MS ACCESS help files. Search for &quot;min&quot;, &quot;max&quot;, &quot;avg&quot; etc and look at the DAO example.<br>
<br>
Hope this helps.<br>
<br>
WP <p>Bill Paton<br><a href=mailto:wpaton@neptune400.co.uk>wpaton@neptune400.co.uk</a><br><a href=
 
WP, <br>
<br>
I found those examples and they were a great help, thanks! Any idea on how to get a set of elements from an SQL statement into an array?<br>
<br>
Thanks in advance.<br>
<br>
MC aka jimmyclams
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top