When I use sqlconnect() and choose MS Access the driver prompts for the
location of the MDB. However, the file dialog does not include Application
data. How can this be avoided?

Re: MS Access ODBC driver (VFP 9.0) by AA

AA
Mon Oct 30 15:44:11 CST 2006

I get to the 'Application Data' folder. Are you adminstrator?
You could try the GetDir dialog which has more parameters, then build a
connection string like
SQLSTRINGCONNECT("DSN=MS Access Database;DBQ=C:\Program Files\Microsoft
Office\OFFICE11\1053\FPNWIND.MDB;DefaultDir=C:\Program Files\Microsoft
Office\OFFICE11\1053;DriverId=25;FIL=MS
Access;MaxBufferSize=2048;PageTimeout=5;
")
-Anders

"Krister" <spam@nospam.smp> skrev i meddelandet
news:Lat1h.21269$E02.8835@newsb.telia.net...
> When I use sqlconnect() and choose MS Access the driver prompts for the
> location of the MDB. However, the file dialog does not include Application
> data. How can this be avoided?
>



Re: MS Access ODBC driver (VFP 9.0) by Krister

Krister
Tue Oct 31 01:34:29 CST 2006

I can reach Appdata from All users, but not for the current user. No change
if I am admimistrator or not.

It is completely lacking in the dialog. And I don't want to use the
sqlstringconnect method, because the code shoulde be the same for different
databases.
/Krister

"AA" <A@A> wrote in message news:usxstLH$GHA.4268@TK2MSFTNGP02.phx.gbl...
>I get to the 'Application Data' folder. Are you adminstrator?
> You could try the GetDir dialog which has more parameters, then build a
> connection string like
> SQLSTRINGCONNECT("DSN=MS Access Database;DBQ=C:\Program Files\Microsoft
> Office\OFFICE11\1053\FPNWIND.MDB;DefaultDir=C:\Program Files\Microsoft
> Office\OFFICE11\1053;DriverId=25;FIL=MS
> Access;MaxBufferSize=2048;PageTimeout=5;
> ")
> -Anders
>
> "Krister" <spam@nospam.smp> skrev i meddelandet
> news:Lat1h.21269$E02.8835@newsb.telia.net...
>> When I use sqlconnect() and choose MS Access the driver prompts for the
>> location of the MDB. However, the file dialog does not include
>> Application data. How can this be avoided?
>>
>
>