|
-
May 18th, 2000, 02:08 AM
#1
Thread Starter
Hyperactive Member
Dear VB users,
In the next rows you can calculate via SQL the average & the sum.
But where can I find the result?
'Calculate the average
Set RS = DB.OpenRecordset("select avg(MyField) from MyTabel") '
RS.MoveLast
'RESULT ? ? ? ? ? ? ? ? ?
'Calculate the sum
Set RS = DB.OpenRecordset("select sum(MyField) from MyTabel ") '
RS.MoveLast
'RESULT ? ? ? ? ? ? ? ? ?
Thanks for your information.
Nice regards,
Michelle.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|