Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLStringConnect() to MSAccess
Message
De
05/09/2003 15:01:38
 
 
À
05/09/2003 09:43:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00826312
Message ID:
00826597
Vues:
20
I've been using this (it's out of a function I have that is called with tcMdb, tcId, tcPwd and returns loConn
lcDir = JustPath(tcMdb)
lcDatabase = JustStem(tcMdb)
lcConnString = "Driver={Microsoft Access Driver (*.mdb)};DefaultDir=" + lcDir + ;
		";DBQ=" + lcDatabase + ;
		";User Id=" + tcID + ;
		";Password=" + tcPwd
loConn = CreateObject('ADODB.Connection')
loConn.Open(lcConnString)
It's been working ok for me.

Alan

>Hi,
>
>1. go on DBC Connections
>2. Click New
>3. Check optionButton Connection_String
>4. Click on ... button
>5. Select Access DSN
>6. Click On
>
>Now you see Connection String.
>
>AFAIK, for Access you cannot connect without a DSN.
>
>Fabio
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform