Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting data in MSACCESS
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01192149
Message ID:
01205956
Views:
23
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform