For VFP, I don't know the parameters. For Access, it will be like this:
strAttributes = "Database=" & .ConDSN & vbCr & _
"DBQ=" & .ConFile & vbCr & _
"Description=Base de données pour " & .ConDSN & vbCr & _
"FIL=MS Access;" & vbCr & _
"UID=" & .ConUID & vbCr & _
"PWD=" & .ConPWD
>Sometimes I use VFP database, sometimes Access mdb, depends really on some factors...
>
>Speed on that aspect is not really much of a concern (unless it takes almost a minute)
>
>Anyways, I'm only considering this for a feature, although I still need to retrieve certain data from a dsn, specifically the path to the database, so I can store image files in the same location as the database and the filepaths in the tables...
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com