Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VB
Message
De
17/05/1999 14:44:27
 
 
À
14/05/1999 14:39:27
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Titre:
Re: VB
Divers
Thread ID:
00219163
Message ID:
00219726
Vues:
17
>In VB, I am using tables from Access. Before I exit the run time form, I want to make sure if all the tables are closed.
>
>I am using the following syntax:
>
> Public Sub closedatabases()
> frmMainFile.Rec_01.Recordset.Close
> End Sub
>
>Before closing the table, how can I make sure if the tables are
>open or not?
>Thank you!


Closing a recordset already closed (or not open) will generate an error.
Just put a ON ERROR RESUME NEXT.
Guy Barrette, MCSD
============
Blog http://weblogs.asp.net/guybarrette
Microsoft Regional Director, Montreal, Canada www.microsoft.com/rd
MVP, ASP.NET http://mvp.support.microsoft.com/
President, Montreal Visual Studio User Group www.guvsm.net
INETA Regional Rep for Quebec www.ineta.org
UniversalThread Magazine Columnist (.NET Books Review Column) www.utmag.com
Tech Chair French Track, DevTeach 2004 & 2005 www.devteach.com
Business Architect, Microsoft Team - Nurun Inc www.nurun.com
XBox Live Gamer Tag: Slomo QC CA
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform