Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Grid
Message
 
To
16/07/2001 21:00:12
Randy Hooper
Ranco Business Software
Tampa, Florida, United States
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Miscellaneous
Thread ID:
00531316
Message ID:
00531335
Views:
10
>I have a grid on a form with a ado control and when I run the form the grid is populated. From a command button on the form how would I write the code to sum a field I have called amountTotal.
>
>New to VB,
>Thanks Randy

You can add another ADO control to your form and set the Recordsource property to an aggregate query like "SELECT SUM(Field1) FROM Table1 WHERE ..." and bind the result to a label.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform