Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to establish global connection
Message
De
29/03/2004 05:59:39
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, Inde
 
 
À
29/03/2004 04:16:05
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00890327
Message ID:
00890368
Vues:
22
thanks nilesh
i have done the ways u have said & i think i haven't got what u r saying
the things which i have done r
i add a module & in that module i have written the code for the connection establishment as

global constock as ADODB.Connection

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

AND in the form load function i m writing code as

dim rs as ADODB.Recordset
set rs= NEW ADODB.Recordset
rs.open "Select * from table",constock,adOpendynamic,adlockoptimistic

so do let me know where i m not doing fine

thanks a lot for reply
best of luck
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform