Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection String TO VFP using VBA
Message
De
24/09/2003 19:40:38
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Titre:
Connection String TO VFP using VBA
Divers
Thread ID:
00832040
Message ID:
00832040
Vues:
57
Hi All,

I’m trying to get connected to VFP6 backend database using VBA. I used a Udl file to build the connection string and tested it over and over. Everything worked OK there. When I pasted the same connection string in my VBA code I get an error message saying

“Object Variable Or with Block Not Set..”

What does this mean ?? How do I correct it ?

My VBA Code..

*---------------------------------------------

Dim M2MConnect As ADODB.Connection

M2MConnect.Open "Driver={Microsoft Visual FoxPro Driver};" _
& "UID=;PWD=;SourceDB=R:\M2Mdata\DATA10\M2MDATA.DBC;" _
& "SourceType=DBC;Exclusive=No;"

*------------------------------------

Please HELP !!!

TIA

- Jeana -
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform