Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exporting data in MSACCESS
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01192149
Message ID:
01205956
Vues:
22
>Naomi,
>
>Are you talking about this string?
>
>
>lcMDBDir  = "C:\Program Files\Star"
>lcMDB     = "The.MDB"  && Example only.
>lnConnHandle = ;
>	SQLSTRINGCONNECT('Driver={Microsoft Access Driver *.mdb};DBQ="'+;
>	lcMDBDir+'\'+lcMDBName+'";UID=admin;Pwd=;')
>
>
>I tried this string also and same problem. "Not valid file."

I guess it's a really bad file then. We were driving you in the wrong direction.

I've tried
lcMDBPath  = "C:\Program Files\Microsoft Office\Office\1033\FPNWIND.MDB"
lnConn =  SQLSTRINGCONNECT('Driver={Microsoft Access Driver (*.mdb)};Dbq=' + lcMDBPath + ';Exclusive=1;Uid=admin;Pwd=')
=MESSAGEBOX(lnConn)
?SQLEXEC(lnConn,'select * from Customers','crsTest')
and it worked just fine.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform