Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Recorcount command locks VB
Message
 
To
03/01/2001 17:09:00
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:
00459168
Views:
21
>HI,
>I need to know the number of records that are stored into an Access table. The data is on a cd-rom and has something like 500 000 records. I use a progressbar to show the user the progress of the process. I need to know the Max value for the progress bar. For that, I use the AccessRst.RecordCount(Access Ado recordset previously created). My problem is that the PC is frozen for 15-20 minutes, the time it takes to VB to read the entire table. Usually, I would use doevents to regain the control of the PC but it is not possible with this case.

Use a «SELECT COUNT(*)» to retreive the number of records.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform