Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to establish global connection
Message
De
30/03/2004 04:14:34
 
 
À
29/03/2004 05:59:39
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00890327
Message ID:
00890685
Vues:
16
why the function connect is acceping constock as parameter ?? that is where the problem lies and the global variable becomes local inside connect.

'Public function connect(constock as ADODB.Connection)
'set constock = NEW ADODB.Connection
'with constock
'.ConnectionString="it's working fine"
'.Prov.
'.Open
'End with
'End function
Best Luck..
Nilesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform