Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Grid
Message
 
À
16/07/2001 21:00:12
Randy Hooper
Ranco Business Software
Tampa, Floride, États-Unis
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Divers
Thread ID:
00531316
Message ID:
00531335
Vues:
9
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform