Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLStringConnect() to MSAccess
Message
From
05/09/2003 15:01:38
 
 
To
05/09/2003 09:43:47
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00826312
Message ID:
00826597
Views:
21
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform