Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recorcount command locks VB
Message
 
To
03/01/2001 19:21:53
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Miscellaneous
Thread ID:
00459128
Message ID:
00459198
Views:
24
>HI Eric,
>Thank you for your help. Can you give me an example, I mean, where do I store the result ? It is easy to issue MyVar = AccRst.RecordCount. But if I use Select count(*)..., I need to use a command object. Where can I store the result of the select count ?

No need for a Command object.

You need to do something like that:
dim lngRecord as long
rst.open "SELECT COUNT(*) FROM table1 WHERE ...", cn
lngRecord = rst.fields(0).value
É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