Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid use of New keyword
Message
De
30/03/2002 17:24:49
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00638804
Message ID:
00639196
Vues:
15
For one I would day always explicitly specify your Object name as in:
Private mrsCon as ADODB.Recordset
Set mrsCon = New ADODB.Recordset
Also, make sure that your reference is turned on for ADO and turned off for DAO. If you have both loaded (and I do have a project that uses both DAO and ADO) you have to be explicit with the Object name or the app can get confused. Aadditionally, you should avoid using New for instatiation an use CreateObject instaed as .NET does not support the New instatiation and porting your code later on will be easier if you use CreateObject
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform